in reply to Template newbie question. Is it lack of understanding or lack of DWIM
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 %]
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Template newbie question. Is it lack of understanding or lack of DWIM
by Trizor (Pilgrim) on Apr 16, 2007 at 18:56 UTC | |
|
Re^2: Template newbie question. Is it lack of understanding or lack of DWIM
by Rhandom (Curate) on Apr 16, 2007 at 20:47 UTC |