Beefy Boxes and Bandwidth Generously Provided by pair Networks Joe
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: Re: Re: rant on = qw(HTML::Mason Embperl Template etc) ;

by maverick (Curate)
on Nov 10, 2001 at 01:05 UTC ( [id://124526]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to Re: Re: rant on = qw(HTML::Mason Embperl Template etc) ;
in thread rant on = qw(HTML::Mason Embperl Template etc) ;

There is an option to allow exactly what you're looking for. In fact it's one I ALWAYS have set. From the docs:

die_on_bad_params - if set to 0 the module will let you call $template->param(param_name => 'value') even if 'param_name' doesn't exist in the template body. Defaults to 1.

Change your constructor to

$tmpl = HTML::Template->new('filename' => $TEMPLATE, 'die_on_bad_params' => 0 );
And you'll be good to go.

/\/\averick
perl -l -e "eval pack('h*','072796e6470272f2c5f2c5166756279636b672');"

Replies are listed 'Best First'.
Re: Re: Re: Re: rant on = qw(HTML::Mason Embperl Template etc) ;
by kwoff (Friar) on Nov 11, 2001 at 23:53 UTC
    Excellent, thanks.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://124526]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.