in reply to Re: HTML::Template's watchful eye
in thread HTML::Template's watchful eye
So far I haven't encountered a case where this approach isn't just peachy, but of course YMMV.my $master = HTML::Template->new(filename=>'master.tmpl'); ### BLAH, BLAH ### my $sub_tmpl = HTML::Template->new(filename=>$foo); $sub_tmpl->param('variable'=>'value'); $master->param('include_foo' => $sub_tmpl->output); __END__ The template like: <tmpl_var name='include_foo' default=''>
Yoda would agree with Perl design: there is no try{}
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: HTML::Template's watchful eye
by Xaositect (Friar) on Jun 24, 2005 at 23:31 UTC | |
|