[htmltmpl] Re: HTML::Template and XHTML
Brought to you by:
samtregar
From: Mark S. <ma...@su...> - 2005-12-10 20:51:26
|
On 2005-10-28, Chris Beck <htm...@pa...> wrote: > Rumour has it Mathew Robertson, on or about 25.Oct.2005 19:48, whispered: >> you can do this with a filter: >> >> my $match = qr/(<[Tt][Mm][Pp][Ll]_[^>]+)\/>/; >> my $filter = sub { >> my $text_ref = shift; >> $$text_ref =~ s/$match/$1>/g; >> }; > > Hi Mathew, thanks for the help. I am already using filters so I can embed tags > in form fields. I was just hoping for a new XHTML aware version :) Even if HTML::Template supported this, <tmpl_var> is not a valid XHTML tag. Did you have another part to your solution that would solve that aspect? It seems like it would necessary to teach your other tools about this as well. Mark -- http://mark.stosberg.com/ |