Re: [htmltmpl] HTML::Template and XHTML
Brought to you by:
samtregar
From: Mathew R. <mat...@ne...> - 2005-10-25 23:50:29
|
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; }; $match is the regex used to find <TMPL_xxx ... /> tags. Then instantiate H::T with the 'filter' option. Hope this helps, Mathew Chris Beck wrote: >Hey all, > >Is there any way I could request that XHTML style <tmpl_var name="blah" /> also >be valid? > >Cheers, >Chris > > |