Re: [htmltmpl] option to turn ESCAPE=HTML on by default

2005-10-18 Thread Carl Franks
On 18/10/05, Philip Tellis <[EMAIL PROTECTED]> wrote: > Oh well, "Perl is designed to make the easy jobs easy, without making > the hard jobs impossible." > > I'd hoped that it was also, "... make impossible jobs pretty hard" touché :) A new option to allow HTML::Template to load up HTML::Parser

Re: [htmltmpl] option to turn ESCAPE=HTML on by default

2005-10-18 Thread Alex Kapranoff
* Philip Tellis <[EMAIL PROTECTED]> [October 18 2005, 16:02]: > >s/pretty hard/impossible/; > >That's why there's only 1 _default_. > > Oh well, "Perl is designed to make the easy jobs easy, without making > the hard jobs impossible." > > I'd hoped that it was also, "... make impossible jobs pre

Re: [htmltmpl] option to turn ESCAPE=HTML on by default

2005-10-18 Thread Philip Tellis
Sometime Today, CF cobbled together some glyphs to say: s/pretty hard/impossible/; That's why there's only 1 _default_. Oh well, "Perl is designed to make the easy jobs easy, without making the hard jobs impossible." I'd hoped that it was also, "... make impossible jobs pretty hard" -- The

Re: [htmltmpl] option to turn ESCAPE=HTML on by default

2005-10-18 Thread Carl Franks
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

Re: [htmltmpl] option to turn ESCAPE=HTML on by default

2005-10-18 Thread Mike
Yes, I realise this now. My apologies for confusing the matter. Mike. - Original Message - From: "Philip Tellis" <[EMAIL PROTECTED]> To: "HTML::Template List" Sent: Tuesday, October 18, 2005 9:27 PM Subject: Re: [htmltmpl] option to turn ESCAPE=HTML on by default Sometime Today, A

Re: [htmltmpl] option to turn ESCAPE=HTML on by default

2005-10-18 Thread Philip Tellis
Sometime Today, AK cobbled together some glyphs to say: Mike, default_escape can be set to 'URL' or even 'JS' (there's Javascript escaping in recent HTML::Template too). That's even tested Consider this: If I have some code in my template that needs to be html escaped, and other code that nee

Re: [htmltmpl] option to turn ESCAPE=HTML on by default

2005-10-18 Thread Alex Kapranoff
Mike, default_escape can be set to 'URL' or even 'JS' (there's Javascript escaping in recent HTML::Template too). That's even tested in my patch. I use non-html escapings a lot myself and that's why I did it this way. * Mike <[EMAIL PROTECTED]> [October 18 2005, 15:05]: > Sorry to be a pain here,

Re: [htmltmpl] option to turn ESCAPE=HTML on by default

2005-10-18 Thread Mike
Sorry to be a pain here, but given that there is also a ESCAPE=URL option (as Roger pointed out), would it be better to revert back to my original suggestion of setting 'html_escape' (and now 'url_escape') to 1 (or ON) in the constructor if they are to be defaults for the template file? Exactly

Re: [htmltmpl] option to turn ESCAPE=HTML on by default

2005-10-18 Thread Alex Kapranoff
* Sam Tregar <[EMAIL PROTECTED]> [October 17 2005, 21:49]: > > diff -ruN /tmp/HTML-Template-2.7/Template.pm HTML-Template-2.7/Template.pm > > --- /tmp/HTML-Template-2.7/Template.pm Fri Jun 18 21:42:06 2004 > > +++ HTML-Template-2.7/Template.pm Mon Oct 17 14:43:36 2005 > > @@ -955,6 +955,7 @@