Re: [Templates] question: automatic entity decoding

[prev] [thread] [next] [Date index for 2005/04/27]

From: Harald Joerg
Subject: Re: [Templates] question: automatic entity decoding
Date: 21:00 on 27 Apr 2005
Andrew Strader asks:

> Is there a feature in the Template Toolkit (specifically, the Perl
> front end Template module) that will decode HTML entities in code
> snippets before parsing the template file?

Not that I know of such a possibility.

> The reason I need such a feature is that I want to allow
> non-developers to edit template files in Dreamweaver, and that means
> template files have to be valid HTML. For example, the code snippet
> [% IF count < 10 %] is not valid HTML.

I had the same problem when running templates for XML through a
validator (xmllint).  I don't know about dreamweaver's validation,
but xmllint can be fooled by simply reverting the comparison:
Just replace [% IF count < 10 %] with [% IF 10 > count %].
        -- 
        Cheers,
haj

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

[Templates] question: automatic entity decoding
Andrew Strader 17:22 on 27 Apr 2005

Re: [Templates] question: automatic entity decoding
Stuart Johnston 20:14 on 27 Apr 2005

Re: [Templates] question: automatic entity decoding
Harald Joerg 21:00 on 27 Apr 2005

Generated at 10:28 on 04 May 2005 by mariachi v0.52