in reply to Re: HTML::Template's watchful eye
in thread HTML::Template's watchful eye

I'd never considered this as a problem, as I accomplish the same thing with a construct like:
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=''>
So far I haven't encountered a case where this approach isn't just peachy, but of course YMMV.

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

    Ooooh... That hadn't occured to me. I like it. ++!


    Xaositect - Whitepages.com
    A reply falls below the community's threshold of quality. You may see it by logging in.