RE: [htmltmpl] Encode parameters (feature request?)
Brought to you by:
samtregar
From: Dan H. <dan...@re...> - 2005-06-23 23:46:34
|
Could do. I'll look into it... cheers Dan > -----Original Message----- > From: Mathew Robertson [mailto:mat...@re...] > Sent: Friday, 24 June 2005 11:44 > To: dan...@re... > Cc: HTML::Template users > Subject: Re: [htmltmpl] Encode parameters (feature request?) > > > 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" <dan...@re...> > To: "'Mathew Robertson'" <mat...@re...> > 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:mat...@re...] > > > Sent: Friday, 24 June 2005 11:01 > > > To: dan...@re... > > > Subject: Re: [htmltmpl] Encode parameters (feature request?) > > > > > > > > > have you tried using the ESCAPE option to TMPL_VAR? > > > > > > Mathew > > > > > > ----- Original Message ----- > > > From: "Dan Horne" <dan...@re...> > > > To: <htm...@li....> > > > 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 > > > > Htm...@li... > > > > https://lists.sourceforge.net/lists/listinfo/html-template-users > > > > > > > > > > > > |