[Templates] modify config options

Tim Keefer tkeefer@sunflowerbroadband.com
Fri, 18 May 2007 10:32:53 -0500


Hi,

I would like to modify some of the template configuration options after 
the TT object is created. For example, I'd like to change the WRAPPER 
setting "midstream" without having to recreate the TT object. As far as 
I can tell, the WRAPPER setting must be passed to the constructor. Is 
there already a way to do this?

my $tt = Template->new({
 WRAPPER         => 'wrapper1.tt',
 INCLUDE_PATH    => '/mydir',       });


# maybe do something like this
$tt->wrapper( 'new_wrapper.tt' );

or

$tt->set_wrapper( 'new_wrapper.tt' );



Thanks,
Tim