Re[2]: [Templates] XML::Simple, encoding, latin1

[prev] [thread] [next] [Date index for 2004/07/22]

From: Oleg Burlaca
Subject: Re[2]: [Templates] XML::Simple, encoding, latin1
Date: 06:40 on 22 Jul 2004
> What about a filter

Thanks for the snippet, it works.
I've used a similar method but without a filter:

[% st = BLOCK %]
  title: [% xdoc.title %]
  .. etc ...
[% END %]

[% st.latin1 %]

the problem is that you can use 'xdoc' variable not only in one template, and
sometimes in perl modules(template plugins), that's why I wanted a solution that
traverse the 'xdoc' data structure and '.latin1' its elements.
Peharps if I would really need that I'll do it myself and post the solution here:
(the simplest method is to recursively traverse the xdoc)

Thanks Gavin.


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

[Templates] XML::Simple, encoding, latin1
Oleg Burlaca 09:26 on 21 Jul 2004

Re: [Templates] XML::Simple, encoding, latin1
Gavin Estey 15:37 on 21 Jul 2004

Re[2]: [Templates] XML::Simple, encoding, latin1
Oleg Burlaca 06:40 on 22 Jul 2004

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