Encode parameters (feature request?)

"Dan Horne" <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.html-template
Organization Redbone
Message-ID <000f01c57844$78c4f490$6403a8c0@rdbxp01>
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
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.