Re: option to turn ESCAPE=HTML on by default
Sam Tregar <[email protected]>
| Newsgroups | gmane.comp.lang.perl.modules.html-template |
|---|---|
| Message-ID | <[email protected]> |
On Mon, 17 Oct 2005, Alex Kapranoff wrote: > One name, one function, please :) > default_escape => 'html'. > > Patch below, with tests. Very cool. > 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 @@ > no_includes => 0, > case_sensitive => 0, > filter => [], > + default_template => undef, That should be "default_template" though, right? Also, I haven't checked it, but I think you might need to add some code to makes sure this setting is inherited by loops. I'm only half-sure about that though, so don't be surprised if I'm wrong! -sam ------------------------------------------------------- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl