Re: [htmltmpl] option to turn ESCAPE=HTML on by default
Brought to you by:
samtregar
From: Sam T. <sa...@tr...> - 2005-10-17 17:49:35
|
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 |