You could sub-class H::T then overload param() to do whatever you needed to do.
Would this help? Mathew ----- Original Message ----- From: "Dan Horne" <[EMAIL PROTECTED]> To: "'Mathew Robertson'" <[EMAIL PROTECTED]> Sent: Friday, June 24, 2005 9:07 AM Subject: RE: [htmltmpl] Encode parameters (feature request?) > My understanding is that this belongs in the template tags. I'm hoping for > an option that can help simplify things in one place... > > Dan > > > -----Original Message----- > > From: Mathew Robertson [mailto:[EMAIL PROTECTED] > > Sent: Friday, 24 June 2005 11:01 > > To: [EMAIL PROTECTED] > > Subject: Re: [htmltmpl] Encode parameters (feature request?) > > > > > > have you tried using the ESCAPE option to TMPL_VAR? > > > > Mathew > > > > ----- Original Message ----- > > From: "Dan Horne" <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Friday, June 24, 2005 8:39 AM > > Subject: [htmltmpl] Encode parameters (feature request?) > > > > > > > I guess this is a new feature request, but I'd like to be able to > > > encode the parameters passed to HTML::Template automatically. So > > > instead of > > > > > > use HTML::Entities; > > > .. etc .. > > > > > > $template->param('my_content', encode_entities($my_content)); > > > > > > I'd like to be able to do: > > > > > > my $template = HTML::Template->new( > > > filename => 'file.tmpl', > > > encode => 1 > > > ); > > > > > > Regards > > > > > > Dan > > > > > > > > > > > > ------------------------------------------------------- > > > SF.Net email is sponsored by: Discover Easy Linux Migration > > Strategies > > > from IBM. Find simple to follow Roadmaps, straightforward articles, > > > informative Webcasts and more! Get everything you need to get up to > > > speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click > > > _______________________________________________ > > > Html-template-users mailing list > > > [email protected] > > > https://lists.sourceforge.net/lists/listinfo/html-template-users > > > > > > > ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Html-template-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/html-template-users
