Stuart A Johnston wrote: > You could wrap your function in a closure over the name of the template > at the time you call process: > > my $template = 'template/name'; > > $tt->process($template, { get_func => sub { get_params($template) } }); > > Er, then again couldn't you just retrieve your data before you call > process?
The function is also passed some arguments by the template, so that won't work, I'm afraid. Cheers, Dave _______________________________________________ templates mailing list templates@template-toolkit.org http://mail.template-toolkit.org/mailman/listinfo/templates