Re: Encode parameters (feature request?)

"Mathew Robertson" <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.html-template
Organization RedSheriff
Message-ID <032501c5784d$63c6b930$a901000a@mat>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.