[Templates] Re: Double encoding of the rseult from UTF8 template

2005-11-25 Thread Svilen Ivanov
Five minutes after I sent this email (and preceded from an hour long googling and testing) I found the problem -- I put "use encoding 'utf8';" and everything worked fine. Sorry for the inconvenience 2005/11/26, Svilen Ivanov <[EMAIL PROTECTED]>: > Hi, > > I'm trying to populate TT2 utf8 template

[Templates] Double encoding of the rseult from UTF8 template

2005-11-25 Thread Svilen Ivanov
Hi, I'm trying to populate TT2 utf8 template with variables which also contain utf8 characters. After processing with TT2, the static text in the template looks double encoded to Unicode (utf8::encode) but the dynamic text (the one that comes from vars) is OK. I use perl 5.8.6, TT 2.14, my perl s

Re: [Templates] Template::Plugin::Iterator

2005-11-25 Thread Vadim Kutchin
> > And I want access to loop1s count() from loop2s. From documentation I > > understand - I must use Template::Plugin::Iterator, but it is not clear > You can take a local copy of the iterator > [% FOR a = [ 1, 2, 3 ] %] > [% outer = loop %] > [% FOR b = [ 'a', 'b', 'c' ]

Re: [Templates] Template::Plugin::Iterator

2005-11-25 Thread Simon Wistow
On Fri, Nov 25, 2005 at 01:18:37PM +0300, Vadim Kutchin said: > And I want access to loop1s count() from loop2s. From documentation I > understand - I must use Template::Plugin::Iterator, but it is not clear for > me how. > Can anybody explain? You can take a local copy of the iterator

[Templates] Template::Plugin::Iterator

2005-11-25 Thread Vadim Kutchin
Hi! I have nested loops in my template: [% FOREACH loop1 = loop1s %] [% FOREACH loop2 = loop1.loop2s %] ... ... [% END %] [% END %] And I want access to loop1s count() from loop2s. From documentation I understand - I must use Template::Plugin::Iterator, but it is