[Templates] Textile filter and utf-8

2005-05-22 Thread Birgit Kellner
tile->new; $text->charset('utf-8'); $tect->process($text_to_process); - everything is fine, too, so I suspect there is some error in the way the textile filter handles character sets in my setup. I'd appreciate any help on this, best regards, Birgit Kellner _

Re: [Templates] internationalization support (i18n)

2005-06-02 Thread Birgit Kellner
t using different page templates for individual langauges - after all, it's the content that varies, while the layout remains the same, so why use different templates and make maintenance more difficult? Hope this is useful, best regards, Birgit Kellner _

[Templates] Syntax question

2005-09-13 Thread Birgit Kellner
able values as literals <% set printed_lastname = g.firstname g.lastname %># produces syntax error Thanks in advance, Birgit Kellner ___ templates mailing list templates@template-toolkit.org http://lists.template-toolkit.org/mailman/listinfo/templates

Re: [Templates] Syntax question

2005-09-13 Thread Birgit Kellner
Thomas, Mark - BLS CTR wrote: Maybe <% set printed_name = g.firstname _ g.lastname %> - Mark. Brilliant! Thanks, this works perfectly, Birgit ___ templates mailing list templates@template-toolkit.org http://lists.template-toolkit.org/mailma

Re: [Templates] Syntax question

2005-09-13 Thread Birgit Kellner
Jason Gottshall wrote: I'd go with Mark's simple concatenation, but just to be thorough, it should be noted that you can interpolate vars in a string using double-quotes and a dollar sign, with added curly braces to clearly delineate references: <% set printed_lastname = "${g.firstname} ${g.las

[Templates] Template::Multilingual

2005-10-29 Thread Birgit Kellner
rr("no template dir"); Can the options INCLUDE_PATH and TAG_STYLE also be used with Template::Multilingual? The first seems to be recognised because the module does actually process the template, but what about TAG_STYLE? Thank you in advance, Birgit Kellner __

Re: [Templates] Template::Multilingual

2005-10-31 Thread Birgit Kellner
Eric Cholet wrote: Birgit, for your information I just uploaded Template::Multilingual 0.06 to CPAN, this version supports TAG_STYLE. Thanks for pointing out this shortcoming. Enjoy, -- Eric Cholet Any view of things that is not strange is false Eric, thanks a lot! TAG_STYLE was indeed

[Templates] loop.first, loop.last

2006-06-10 Thread Birgit Kellner
the Template module throws an error: file error - parse error - pub_author.tmpl line 3: unexpected token (LAST) [% if not loop.last %]. The same error is thrown by "unless loop.last". Can someone please explain this to me? Thank you, and best regards, Birgit Kellner _

Re: [Templates] loop.first, loop.last

2006-06-10 Thread Birgit Kellner
Randal L. Schwartz schrieb: "Birgit" == Birgit Kellner <[EMAIL PROTECTED]> writes: Birgit> Hi, Birgit> I'm looping through an array of hashes with "foreach" and have problems using Birgit> "loop.last": Birgit>

Re: [Templates] Re: loop.first, loop.last

2006-12-23 Thread Birgit Kellner
Just adding information to a very, very old thread from June 2006 that I now finally (!) got round to address: Darren Chamberlain wrote: * Robert Hicks <[EMAIL PROTECTED]> [2006/06/11 19:38]: What about making an alias? loop.final? That seems like a good idea. :-) It shoul

[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