[leo@xxxxxx.xxx: Re: [Templates] Reading the errors]
[prev]
[thread]
[next]
[Date index for 2005/01/30]
--/04w6evG8XlLl3ft
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
This is what he was after.
--/04w6evG8XlLl3ft
Content-Type: message/rfc822
Content-Disposition: inline
Date: Sat, 29 Jan 2005 19:49:23 +0000
From: Leo Lapworth <leo@xxxxxx.xxx>
To: Octavian Rasnita <orasnita@xxx.xx>
Subject: Re: [Templates] Reading the errors
Message-ID: <20050129194923.GA10466@xxxxxx.xxx>
Reply-To: Leo Lapworth <leo@xxxxxx.xxx>
References: <017f01c50638$e0831770$142afea9@xxxxxxxxx.xxx>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <017f01c50638$e0831770$142afea9@xxxxxxxxx.xxx>
User-Agent: Mutt/1.5.6+20040722i
On Sat, Jan 29, 2005 at 09:29:35PM +0200, Octavian Rasnita wrote:
> I would like to see if I have made a type mistake and TT can't find a
> template file, or if I have made a syntax error in a template.
I think you want error().. i.e:
my $tt = Template->new(\%congif);
$tt->process(....);
print $tt->error() if $tt->error();
Leo
--/04w6evG8XlLl3ft--
_______________________________________________
templates mailing list
templates@xxxxxxxxxxxxxxxx.xxx
http://lists.template-toolkit.org/mailman/listinfo/templates
 |
[leo@xxxxxx.xxx: Re: [Templates] Reading the errors]
Leo Lapworth 09:38 on 30 Jan 2005
|