[Templates] loop first, loop last in current version

2008-09-15 Thread Birgit Kellner
Hi, in an older version of the Template Toolkit (we just updated our server to 2.19), using <% if loop.last %> threw an error that could be solved through a hack in Iterator.pm, sub AUTOLOAD: $item = 'LAST' if $item eq 'loop_final'; This hack no longer works, and <%if loop.last %> still throws

Re: [Templates] loop first, loop last in current version

2008-09-15 Thread Mike South
On Mon, Sep 15, 2008 at 9:29 AM, Birgit Kellner <[EMAIL PROTECTED]> wrote: > Hi, > > in an older version of the Template Toolkit (we just updated our server > to 2.19), using <% if loop.last %> threw an error that could be solved > through a hack in Iterator.pm, sub AUTOLOAD: > > $item = 'LAST' if

[Templates] Commonly used file extensions for Template Toolkit

2008-09-15 Thread Clinton Gormley
Hi all Quick survey : what file extensions do you typically use for your TT templates? - .tt - .html - ??? Bonus question: what file extensions do you use for your YAML files? - .yaml - .yml - .conf - ??? Some background: I'm in the process of extending Locale::Maketext:

Re: [Templates] Commonly used file extensions for Template Toolkit

2008-09-15 Thread Paul Seamons
> Quick survey : what file extensions do you typically use for your TT > templates? > - .tt > - .html > - ??? Depends on if it is html. Anything that is html I usually use .html. If it is a small chunk of html of use in an INCLUDE or PROCESS, I'll sometimes use .tt. But most of the time it

Re: [Templates] Commonly used file extensions for Template Toolkit

2008-09-15 Thread Bill Moseley
On Mon, Sep 15, 2008 at 05:56:41PM +0200, Clinton Gormley wrote: > Hi all > > Quick survey : what file extensions do you typically use for your TT > templates? > - .tt > - .html Both, depending on how the template is used. > Bonus question: what file extensions do you use for your YAML files?

Re: [Templates] Commonly used file extensions for Template Toolkit

2008-09-15 Thread Bill Ward
On Mon, Sep 15, 2008 at 8:56 AM, Clinton Gormley <[EMAIL PROTECTED]> wrote: > Hi all > > Quick survey : what file extensions do you typically use for your TT > templates? > - .tt > - .html > - ??? I usually use .tt2 or sometimes .tmpl (I used to use HTML::Template before I saw the light) > Bon

Re: [Templates] Commonly used file extensions for Template Toolkit

2008-09-15 Thread Josh Rosenbaum
Clinton Gormley wrote: > Hi all > > Quick survey : what file extensions do you typically use for your TT > templates? > - .tt > - .html > - ??? .tt and .html. We also use no extension, but with an ancestor directory ending with '-tt'. (ie. templates-tt/my_template or templates-tt/foo/my_templ

Re: [Templates] Commonly used file extensions for Template Toolkit

2008-09-15 Thread Sean McAfee
On Mon, Sep 15, 2008 at 8:56 AM, Clinton Gormley <[EMAIL PROTECTED]>wrote: > Hi all > > Quick survey : what file extensions do you typically use for your TT > templates? > - .tt > - .html > - ??? > I inherited an environment where HTML templates have a single .tt extension, and other templates

Re: [Templates] Commonly used file extensions for Template Toolkit

2008-09-15 Thread Slaven Rezic
Clinton Gormley wrote: > Hi all > > Quick survey : what file extensions do you typically use for your TT > templates? > - .tt > - .html > - ??? > > I use .tpl., where is the extension of the file to be created (html, css, js, pl, map, whatever). Background: this has the advantage to be edi

Re: [Templates] Commonly used file extensions for Template Toolkit

2008-09-15 Thread Andrew Marold
I mostly use .tmpl, as my original introduction to TT came from Bugzilla, and that's what they use. Since I use them throughout our build & deploy process, using the same tool to expand them, I also use .tt for some, and some have no special extension. Drew Clinton Gormley wrote: > Hi

Re: [Templates] Commonly used file extensions for Template Toolkit

2008-09-15 Thread Kelly Thompson
How about this one. What extension does TT use as it's default output extension? Why can't I get server side includes to work? Is there a way to use TT to create dynamic documents with shtml extension? On Mon, Sep 15, 2008 at 2:15 PM, Andrew Marold <[EMAIL PROTECTED]> wrote: > I mostly use .t