in reply to Re: Re: Template Toolkit 2 and subroutines
in thread Template Toolkit 2 and subroutines
In addition to the use of filters, you can pass a reference to any sub in as part of the stash. I sometimes pass in a URI escape subroutine from Apache::Util and use it like this in a template: [% uri(foo.bar) %]