in reply to (elbie): Template Toolkit, and delaying the execution of a function
in thread Template Toolkit, and delaying the execution of a function
It would be cleaner to change you code to return values, but TT does provide a directive that automatically ties STDOUT for you. Try this:
{#PERL#} $stash->get('show_elements'); {#END#}
Or just call &show_elements in some other way from within the PERL block.
|
---|
Replies are listed 'Best First'. | |
---|---|
(elbie 3): Template Toolkit, and delaying the execution of a function
by elbie (Curate) on Aug 20, 2001 at 21:47 UTC | |
by perrin (Chancellor) on Aug 21, 2001 at 03:42 UTC |
In Section
Seekers of Perl Wisdom