zim-wiki team mailing list archive
Mailing list archive
Re: Export templates
> Not really, but you could construct a template that is one big "if ...
> else ..." and includes the two templates.
To select the appropriate template I'd like to use a meta setting,
something similar to:
Wiki-Format: zim 0.4
And in the template:
[% IF page.meta.Template == "Foo" %] ... [% END %]
Technically this works, but generates an awful amount of warnings.
I couldn't find a way to test whether a page has a meta, and whether this
meta has the key.
Did I miss a hidden equivalent to the python 'key in dict' test?