emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Mike Gauland <mikelygee@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: Accessing properties in code blocks
Date: Fri, 10 Jan 2020 09:40:26 +1300	[thread overview]
Message-ID: <c83b4521-8109-f7e4-dd64-f8e8beec0d1a@gmail.com> (raw)
In-Reply-To: <0B9BEF62-CCEB-4E1A-9FE6-487B797881C2@gmail.com>

On 10/01/2020 9:23 am, sergio ruiz wrote:
> * Report section
> :url: http://www.googole.com
> :END:
> I'd like to have several sections like this. Each section woudl have 
> different values for the same property. They would make different 
> calls to respective url. something like
> #+BEGIN_SRC shell
> curl <url_property_here>
You can use elisp code to look up the property you want to pass as a 

#+BEGIN_SRC shell :var url=(org-macro--get-property "url" "")
curl $url

  reply	other threads:[~2020-01-09 20:39 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-09 20:23 Accessing properties in code blocks sergio ruiz
2020-01-09 20:40 ` Mike Gauland [this message]
2020-01-09 21:32   ` sergio ruiz
2020-01-09 23:26     ` Mike Gauland
2020-01-10 13:16       ` sergio ruiz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c83b4521-8109-f7e4-dd64-f8e8beec0d1a@gmail.com \
    --to=mikelygee@gmail.com \
    --cc=emacs-orgmode@gnu.org \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox


This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).