![]() |
|
P is for Practical | |
PerlMonks |
Re: template toolkit question -- metadataby Tomte (Priest) |
on May 11, 2007 at 08:27 UTC ( #614845=note: print w/replies, xml ) | Need Help?? |
The TT2 documentation says: The META directive allows simple metadata items to be defined within a template. These are evaluated when the template is parsedThat means that the last value assigned to a META item will 'win', so to speak, as the conditional can't be and isn't evaluated during parse-time - change the order of the conditional, and the title should always display "BOOK". Edit: I experimented a bit with the following template and ttree to test my hypothesis, and I seem to interpret the documentation correctly:
regards,
An intellectual is someone whose mind watches itself.
In Section
Seekers of Perl Wisdom
|
|