is it possible to define a subroutine within a template? All the examples I've seen so far assume that the template is being processed from a piece of perl code that prepares variables, while I'd prefer to stick with ttree.
What I'm looking for is some kind of tt2 equivalent of named PERL blocks that are planned for tt3:
[% PERL my_own_func %] ..function code.. [% END %] [% my_own_func(args) %]
In reply to Template Toolkit 2 and subroutines by marcink
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |