Template Toolkit doesn't support ucfirst as a method, but it does have a ucfirst filter. I don't think it supports the ternary operator, either. You could write it like this:
[% IF section %][% section | ucfirst %] - [% END %]
In reply to Re: Template newbie question. Is it lack of understanding or lack of DWIM
by friedo
in thread Template newbie question. Is it lack of understanding or lack of DWIM
by Trizor
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |