Click here to get back home

Template Toolkit dropping errors

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Template Toolkit dropping errors Gibbering 05-01-2007
Posted by Gibbering on May 1, 2007, 7:55 pm
Please log in for more thread options


I'm using Template v2.8, and the problem is rather simple:

If I have an object O with a method foo declared as such:

sub foo() { warn "pre"; pop->sldkfjsdlfkj(); warn "post" }

sldkfjsdlfkj() is not an existing method on the object...

If I pass O to the template stash during templatize(), all is well so
far, but when I within the template try:

[% O.foo %]

I look in my apache error log, and see the "pre", but not the "post",
and there are no warning, or errors telling me that sldkfjsdlfkj() was
undefined (I use warnings and strict).

I tried diving around in the TTK source and inserting debug statements
and such, but had little luck.

Was wondering if anyone else had seen this, and had a clue as to what
is going on.

Thanks in advance!


Similar ThreadsPosted
Template Toolkit Beautifer September 8, 2006, 2:22 pm
Problems when installing Template Toolkit on Activestate October 13, 2004, 11:06 pm
Template-Toolkit: Flushing Output or Incremental Output, how? September 13, 2007, 2:45 pm
HTML::Template March 5, 2008, 2:40 pm
HTML::Template and __ODD__ July 22, 2005, 7:48 am
HTML::Template not outputting February 25, 2008, 3:11 pm
Mixing HTML::Template and GD::Graph May 14, 2005, 8:53 am
Namespace for new module: HTML::Template::HTX? May 13, 2005, 7:17 pm
Recall::Template - new module proposal March 14, 2007, 3:21 pm
Perl Database Programing download for the template January 9, 2008, 12:56 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap