The default.beamer pandoc default template for LaTex beamer has this line:
$if(theme)$
\usetheme{$theme$}
$endif$
Does the test for a specific theme work as well? Something like:
$if(theme)$
\usetheme{$theme$}
$if(Berlin)$
\setbeamertemplate{headline}
{}
$endif$
$endif$
In the Pandoc - Pandoc User Guide, I've found this:
$if(variable)$
X
$else$
Y
$endif$
This will include X in the template if variable has a non-null value; otherwise it will include Y. X and Y are placeholders for any valid template text, and may include interpolated variables or other conditionals. The $else$ section may be omitted.
And more info on looping over variables with multiple values, however I can't seem to find information on how to test for a specific variable value - not true or false, but Darmstadt or Berlin in the specific example of a LaTex Beamer Theme.
Can this work somehow?