Re: [proof of concept, tip] 'Templates with arguments' using org src blocks

2023-10-13 Thread Max Nikulin
On 06/10/2023 15:07, Juan Manuel Macías wrote: And, finally: ┌ │ #+header: :var table = table1 │ #+header: :var notes = "\\item [1] First note\n\\item [2] Second note" │ {{{template(tptable,table notes)}}} └ Usage is quite close to "#+call:", but it does not support specifying argumen

[proof of concept, tip] 'Templates with arguments' using org src blocks

2023-10-06 Thread Juan Manuel Macías
Hi, this is a proof of concept of how a sort of 'templates with arguments' can be used within Org, just with Org’s own resources at the user level. It occurred to me that org src blocks might be handy for this. For this test I just made a disguised format string using this function: ┌ │ (def