[htmltmpl] New Template Object based on Existing one
Brought to you by:
samtregar
From: Chris F. <cf...@do...> - 2004-02-08 17:41:03
|
Hey All, I haven't seen a message posted since the 21st, so I wanted to make sure = everything was still working :) Seriously, this may be a silly or even stupid question - but is there = some way to create a new template object and simply assign it all the = params as a existing template object? Something like **** my $content =3D new HTML::Template(filename =3D> "template1.tmpl"); Go through and set all kinds of params my $content2 =3D new HTML::Template(filename =3D> "template2.tmpl"); $content2->param(%$content); $content2 now contains all the params and values that were/are in = $content. **** I know that wouldn't work, just hoping it would help explain. Thanks -Chris |