Re: option to turn ESCAPE=HTML on by default

Carl Franks <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.html-template
Message-ID <[email protected]>
On 18/10/05, Philip Tellis <[email protected]> wrote:
> I want both to be on by
> default.

There can only be 1 _default_, by definition

> It makes sense therefore to do this:
>
> html_escape => 1, js_escape => 1, foo_escape => 0

> Of course, it's pretty hard to figure out which TMPL_VARs need to be
> escaped in each way.  It's also hard to extend this with sanity.

s/pretty hard/impossible/;
That's why there's only 1 _default_.

If there's going to be more HTML vars than URL's, then set default to
HTML, and manually set each URL var to ESCAPE=URL - or vise-versa -
it's still less work to do that before.

Carl


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.