HTML::Template should die on bad params by default.

Here's an excerpt from the man page -

.   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.

So it should die if you set a param that doesn't exist. Also its
perfectly acceptable to use HTML::Template without CGI::Application. :)
However if its within your application using CGI::App then its kind of a
waste since you can make an instance of HTML::Template though themodule
itself. If your outputting to nothing, umm yea you'll get nothing. Not
exactly sure what you're talking about without seeing some code.

Jamie 

-----Original Message-----
From: Joel Gwynn [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, December 05, 2001 2:19 PM
To: [EMAIL PROTECTED]
Subject: [cgiapp] html-template


Hello all.  When using CGI::Application with HTML::Template, sometimes
I'll try to fill in a nonexistent form variable, and I'll get a helpful
error message telling me where I screwed up.

But when I use HTML::Template without CGI::Application (I know, shame on
me), and make a similar mistake, I get no output at all.

Is there a parameter I can set that will give me some error output?


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to