Re: HTML::Template for WML

Alex Kapranoff <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.html-template
Organization Inner Mongolia
Message-ID <[email protected]>
* Mathew Robertson <[email protected]> [June 29 2005, 02:37]:
> > As far as I understand the only way to add an ESCAPE filter is to
> > hack _parse method (subclassing or just patching). Looks like
> > ESCAPE filters are all hardwired and spread over the code of the method.
> > 
> > Did anyone face these problems? Or is WML that dead and no one cares
> > about it anymore? :)
> 
> I also found that it was quite hard to plugin custom ESCAPE types -
> so I modified my copy of H::T so that the escaping code is handled
> by subclasses of a new H::T::ESCAPE module.
> 
> The idea is that you subclasss H::T::ESCAPE, then submit the new
> escape-type back for everyone else to use.  You can download my
> version of H::T here:  http://members.optusnet.com.au/mathew

This is great! I see there more features I'd like to use, not only
custom ESCAPErs! I strongly advise you to upload your work to CPAN
as a HTML::Template fork. Those features will certainly benefit a 
wider audience.

I'm going to try to port your ESCAPE abstraction to HT::JIT as that's
really what we use in production.

-- 
Alex Kapranoff,
$n=["1another7Perl213Just3hacker49"=~/\d|\D*/g];
$$n[0]={grep/\d/,@$n};print"@$n{1..4}\n"


-------------------------------------------------------
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.