Re: [htmltmpl] Usage question
Brought to you by:
samtregar
From: Sam T. <sa...@tr...> - 2006-03-06 06:53:58
|
On Sun, 5 Mar 2006, Matias Alejo Garcia wrote: > Is there any way to, once the $template is filled, to dump the variables to > a file? Sure. The full parameter set is available via param(): my %data = map { ($_, $template->param($_) } $template->param(); You can dump that hash to a file with Storable or Data::Dumper, just like any other Perl file. Alterantely, you can use Storable on the HTML::Template object itself. This is guaranteed to work since this is how HTML::Template implements file_cache mode. -sam |