On Tuesday, 15 Oct 2019 at 09:37, wlharvey4 via Emacs-orgmode wrote:
> Is it possible to inject the value of a macro into code using a variable?
I use properties for this, as in:
#+begin_src org
,#+property: version 2.0.5
,#+header: :var version=(esf/get-parameter "benzenefeed")
[...]
,#+
Hello,
wlharvey4 via Emacs-orgmode writes:
> Is it possible to inject the value of a macro into code using
> a variable?
No, macros are mostly text replacement. They are not Babel related.
You may want to pass arguments to Babel blocks using other Babel blocks.
Regards,
--
Nicolas Goaziou
Is it possible to inject the value of a macro into code using a variable?
I set a macro called ‘version’ with a version number at the top of my .org
file. I would like to do something like this:
#+macro:version Version 0.2.5
#+name:code-name
#+begin_src js :tangle some-file.js :var ver={{{vers