I’d like to do this:
In “source.md”:
---
myvar:
- foo: 123
- bar: 789
---
On the command line:
pandoc -s --template template.htm source.md -o target.htm -V subvar=bar
Is it possible to have “template.htm” display the content of myvar.[subvar] as passed from the command line– i.e. in this example, the content of myvar.bar (“789”)?
I tried these, which aren’t working:
$for(myvar)$ $myvar$.$subvar$ $endfor$
$for(myvar)$ $myvar.subvar$ $endfor$
Thank you.