RE: [htmltmpl] Encode parameters (feature request?)

2005-06-23 Thread Dan Horne
Could do. I'll look into it... cheers Dan > -Original Message- > From: Mathew Robertson [mailto:[EMAIL PROTECTED] > Sent: Friday, 24 June 2005 11:44 > To: [EMAIL PROTECTED] > Cc: HTML::Template users > Subject: Re: [htmltmpl] Encode parameters (feature request?) > > > You could sub-cl

Re: [htmltmpl] Encode parameters (feature request?)

2005-06-23 Thread Mathew Robertson
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 (f

[htmltmpl] Encode parameters (feature request?)

2005-06-23 Thread Dan Horne
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