[DCPM] TT undefined variables

Robin Barker Robin.Barker at npl.co.uk
Thu Jul 21 02:25:59 PDT 2005


Steve 

You may find DEBUG_UNDEF helpful, e.g.

    use Template::Constants qw(:debug);
    my $it = Template->new({DEBUG => DEBUG_UNDEF});
or
    my $it = Template->new({DEBUG => 'debug'});

Robin

-----Original Message-----
From: Steve Marvell
To: devoncornwall-pm at pm.org
Sent: 20/07/05 17:42
Subject: [DCPM] TT undefined variables

I've tried a million ways, but I can't get Template Toolkit to return
me an error if it comes across a variable in the template which does
not exist in the variables hash.

Any ideas.

Steve
_______________________________________________
Devoncornwall-pm mailing list
Devoncornwall-pm at pm.org
http://mail.pm.org/mailman/listinfo/devoncornwall-pm

-------------------------------------------------------------------
This e-mail and any attachments may contain confidential and/or
privileged material; it is for the intended addressee(s) only.
If you are not a named addressee, you must not use, retain or
disclose such information.

NPL Management Ltd cannot guarantee that the e-mail or any
attachments are free from viruses.

NPL Management Ltd. Registered in England and Wales. No: 2937881
Registered Office: Serco House, 16 Bartley Wood Business Park,
                   Hook, Hampshire, United Kingdom  RG27 9UY
-------------------------------------------------------------------


More information about the Devoncornwall-pm mailing list