dimanche 30 juillet 2017

if conditionals in pandoc templates depending on value of a variable

In pandoc, you can see if you have a variable or not ($if(something)$ put $something$ $endif$), but I want to act depending on its value. Something like:

$if(lang)=='en'$ Hello $else$ Aloha $endif$

Is it possible? In Pandoc Manual I don't see nothing

Aucun commentaire:

Enregistrer un commentaire