[Templates] Findng Errors in Template files
David Martin
dmartin119 at cox.net
Thu Jan 10 14:51:31 GMT 2008
Hi Clayton,
Yes that was what I was seeking but Michael South's suggestion of using
my $tt = Template->new();
$tt->process('template.tt') || die $tt->error();
worked just fine and I am all set now.
Peace and thanks,
David
> -----Original Message-----
> From: Clayton Scott [mailto:clayton.scott at gmail.com]
> Sent: Thursday, January 10, 2008 7:28 AM
> To: Perrin Harkins
> Cc: dmartin119 at cox.net; templates at template-toolkit.org
> Subject: Re: [Templates] Findng Errors in Template files
>
> On Jan 9, 2008 5:06 PM, Perrin Harkins <perrin at elem.com> wrote:
> > You can certainly examine the generated perl code, if that's what you
> > mean. Just turn the file cache on and the perl code will get written
> > to disk.
>
> I believe that he's looking for a method of checking his templates for
> check for template syntax errors,
> essentially the equivalent of perl -c perlfile for perl syntax errors.
>
> --
>
> Clayton Scott
> clayton.scott at gmail.com
More information about the templates
mailing list