> I think I'd write that:
>
> use Storable qw(freeze);
> $cache = freeze($t);
>
> HTML::Template works fine with Storable - that's how the file_cache
> and shared_cache work.
>
> -sam
>
That didn't even cross my mind! I think that's exactly what I'll do.
The code I had written used Storab
On Wed, 12 May 2004, Carl Franks wrote:
> You can obtain a template to be saved externally as such:
>
> $cache = $t->output( cache_ref => 1 );
I think I'd write that:
use Storable qw(freeze);
$cache = freeze($t);
HTML::Template works fine with Storable - that's how the file_cache
and shared
Hi all,
I've coded and tested a new feature for the 'new' and 'output' methods
and would like people's feedback on whether it might be accepted.
This feature request allows a parsed template structure to be output
as a scalar ref, which can be fed back to the new method again.
Effectively this