Re: HTML::Template for WML

"Mathew Robertson" <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.html-template
Organization RedSheriff
Message-ID <020a01c57c31$ed709fb0$a901000a@mat>
> HTML::Template works for anything as you all know. The trouble I'm
> having is that WML needs more escaping than good old HTML (WML turned
> out to be a templating language in itself with user agent performing
> simple variable substituition in the document).
> 
> 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

Hope this helps,
Mathew



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