[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cgiapp] Template Toolkit Interaction


Hi,

I just recently found CGI::Application and it looks really great.  I've
started writing a project in it that will use Template Toolkit for HTML
output.  I'm having problems with the Template Toolkit error handling when
used with CGI::Application.  Whenever I get an error, it shows the error only
as "Template::Exception" and not the actual error string.

I did some searching and found this thread:
http://template-toolkit.org/pipermail/templates/2003-March/004336.html
which suggested it is a problem with CGI::Carp, specifically the
$SIG{__DIE__} handler it installs.  I edited Application.pm and replaced use
CGI::Carp; with just use Carp; and Template Toolkit worked as it should.

I found this post on the mailing list:
http://www.mail-archive.com/suppressed/msg00657.html
that offered a patch to disable the use of CGI::Carp, but there wasn't any
indication as to whether it would be accepted.

Is there another (better?) way to work around this or is the best solution to
change the use of CGI::Carp to Carp?  If that's the case, is it likely this
will be changed in a future version?  It would be kind of annoying to have to
edit every copy of CGI::Application I install.

Thanks!

Curtis H.




---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/suppressed/
              http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.