Re: [htmltmpl] HTML::Template and XHTML

2005-10-28 Thread Chris Beck
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 filt

Re: [htmltmpl] HTML::Template and XHTML

2005-10-25 Thread Mathew Robertson
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 tags. Then instantiate H::T with the 'filter' option. Hope this helps, Mathew Chris Beck wrote: Hey all,

[htmltmpl] HTML::Template and XHTML

2005-10-25 Thread Chris Beck
Hey all, Is there any way I could request that XHTML style also be valid? Cheers, Chris -- Chris Beck - http://pacanukeha.blogspot.com "Privacy is what they take away when they want to torture you.” -- The Earl of Spencer --- This SF.Net