[Templates] Reporting missing values

Jonas Liljegren jonas@paranormal.se
Wed, 16 Aug 2000 16:50:20 +0200 (CEST)


On Wed, 16 Aug 2000, Andy Wardley wrote:

> On Aug 16,  4:02pm, Jonas Liljegren wrote:
> > It shoule at least giva an optional warning. But I would like to tell TT
> > to throw an exception.  Especially in the two later cases.
> 
> Set the DEBUG option.  This is badly named as it's really only the Stash
> debug, and should probably be called "WARNINGS" or "WARN_UNDEF" or
> something similar.  Nevertheless, it's there for now.  It will cause
> any undefined variables to raise an 'undef' exception with a message
> saying "blah blah not defined".

That doesn't work for me.

Tried with   $t = Template->new({ DEBUG => 1 })

and $Template::Stash::DEBUG = 1; and even [% SET DEBUG = 1 %]


I even tried $t->{'SERVICE'}->{'CONTEXT'}{'STASH'}{'_DEBUG'}=1 without
success...


-- 
/ Jonas  -  http://jonas.liljegren.org/myself/en/index.html