|
|
Choosing A Webhost: |
Re: xml complant tags: msg#00005lang.perl.modules.html-template
On Mon, 8 Dec 2003, paul POULAIN wrote: > For instance, h::t tags are not html valid <TMPL_VAR name="X"> is NOT > valid. It should be : <TMPL_VAR name="X"/>. You mean "XML valid" right? HTML::Template has nothing to do with XML so of course it's not valid XML! > Is it possible to add this feature in a future version ? (with <TMPL_VAR > > still possible to avoid rewritting all templates, of course) You can do it yourself with a filter. Something like (untested): sub allow_trailing_slash { my $text = shift; $$text =~ m!(<tmpl_[^>]*)/>!$1>!g; } $t = HTML::Template->new(filter => \&allow_trailing_slash, ...); -sam ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | H::T future (was Re: xml complant tags), Puneet Kishor |
|---|---|
| Next by Date: | RE: :T future (was Re: xml complant tags), Paulsen, Brian |
| Previous by Thread: | Re: xml complant tags, Mathew Robertson |
| Next by Thread: | RE: xml complant tags, Paulsen, Brian |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |