Don't ask to ask, just ask | |
PerlMonks |
Template Toolkit 2 and subroutinesby marcink (Monk) |
on Oct 09, 2001 at 17:06 UTC ( [id://117720]=perlquestion: print w/replies, xml ) | Need Help?? |
marcink has asked for the wisdom of the Perl Monks concerning the following question:
Hi, 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:
Thanks, -marcink
Back to
Seekers of Perl Wisdom
|
|