hi, all.
in the front of the code ,I create TT instance like this:
[snip]
use vars qw/$tt/;
my $tt = Template->new({ PRE_PROCESS => 'header', POST_PROCESS =>
'footer', [snip] };
my $q = $query->param('q');
[snip]
require "$q.pl";
[snip]
but in one of $q.pl(such as mail.pl, others need the PRE_PROCESS), I
don't want the PRE_PROCESS when I call $tt->process
is there a way to change *Config Options* after $tt is created? just
like $tt->{PRE_PROCESS} = ''; or something else.
I don't want to create a new TT instance in this $q.pl(mail.pl) since
it's ugly.
Thanks for your help.
--
Fayland Lam // http://www.fayland.org/
_______________________________________________
templates mailing list
[email protected]
http://lists.template-toolkit.org/mailman/listinfo/templates