Re: [Templates] Template Toolkit and DateTime::Duration

[prev] [thread] [next] [Date index for 2004/12/08]

From: C. Chad Wallace
Subject: Re: [Templates] Template Toolkit and DateTime::Duration
Date: 01:00 on 08 Dec 2004
Arshavir Grigorian wrote:
> DateTime::Duration obviously does not overload comparison operators, but 
> where am I comparing anything ? Calling the years() method in the Perl 
> code outside the template works fine.
> Another problem is that the line numbers are incorrect (8 lines off). 
> Line 28 in my template is a line of static HTML. I had to comment out 
> everything to figure out the offending line. What's causing this?
> 
> Is the above TT syntax doing something behind the scenes?

The compiled version of that template will probably reveal what's really 
going on.  If you set the COMPILE_DIR or COMPILE_EXT config options for 
the Template object (see the section "Caching and Compiling Options" in 
the Template::Manual::Config page), then TT will save the compiled 
version of your template, which is just Perl code.

Hope that helps...
Chad.


_______________________________________________
templates mailing list
templates@xxxxxxxxxxxxxxxx.xxx
http://lists.template-toolkit.org/mailman/listinfo/templates

[Templates] Template Toolkit and DateTime::Duration
Arshavir Grigorian 00:02 on 08 Dec 2004

Re: [Templates] Template Toolkit and DateTime::Duration
C. Chad Wallace 01:00 on 08 Dec 2004

Re: [Templates] Template Toolkit and DateTime::Duration
Arshavir Grigorian 02:03 on 08 Dec 2004

Re: [Templates] Template Toolkit and DateTime::Duration
Arshavir Grigorian 16:58 on 08 Dec 2004

Re: [Templates] Template Toolkit and DateTime::Duration
Arshavir Grigorian 19:59 on 09 Dec 2004

Re: [Templates] Template Toolkit and DateTime::Duration
Arshavir Grigorian 17:28 on 14 Dec 2004

Generated at 08:56 on 15 Mar 2005 by mariachi v0.52