[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Accessing properties in code blocks

From: Mike Gauland
Subject: Re: Accessing properties in code blocks
Date: Fri, 10 Jan 2020 09:40:26 +1300
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Thunderbird/68.3.1

On 10/01/2020 9:23 am, sergio ruiz wrote:
* Report section
:url: http://www.googole.com

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 variable:

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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]