Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^2: HTML::Template's watchful eye

by radiantmatrix (Parson)
on Jun 24, 2005 at 20:09 UTC ( [id://469817]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://469817]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2024-04-19 23:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found