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.

--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/8ae56d51-dbe6-44cb-9bb0-e875f636730b%40googlegroups.com.