Quoting Sam Tregar <[EMAIL PROTECTED]>:
> Why not just use:
>
> $template = new HTML::Template(
> filename => "$template_filename",
> die_on_bad_params => 0,
> loop_context_vars => 1,
> filter => {
> sub => sub { $language_filter->(shift,
> scalar $query->param("language")) },
> format => 'scalar',
> },
> );
But this would not work if you have caching turned on. It would only work the
first time you called it. Any time you call that template afterwards, you will
always get the first translation you did.
Cees
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]