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
[email protected]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to