Mark Wagner wrote:
Why does the Template::Stash get gutted after the the process?
So that variables set in one template don't have side-effects in the next
template you happen to process.
$config->{'export'} = { };
$hack = '[% PERL %] $stash->set([ "export", 0, "stash", 0 ], $stash); [% END
%]';
$tt->process(\$hack, $config));
That'll work, but be careful. You've created a circular reference so your
application may bleed memory if you run it for long enough.
Cheers
A
_______________________________________________
templates mailing list
[email protected]
http://lists.template-toolkit.org/mailman/listinfo/templates