[htmltmpl] Valid XHTML templates
Brought to you by:
samtregar
From: Tobias G. <lis...@e-...> - 2005-01-18 23:44:52
|
Hi! Is there any way to use a valid XHTML document as template? As far as I tried this seems to be not possible. e.g.: [1] valid XHTML, working: <title><tmpl_var name="title"/></title> [2] valid XHTML, but not working: <option value="<tmpl_var name>"><tmpl_var name="name"/></option> [3] invalid XHTML, not working either <option value="<tmpl_var name>"><tmpl_var name="name"/></option> [4] invalid XHTML, but working (just removed the slash, this worked in [1]!) <option value="<tmpl_var name>"><tmpl_var name="name"></option> The template needs to be valid xml, to be processed for translations. My current solution is to transform the valid XHTML to an invalid template that HTML::Template can deal with. But I would prefer feeding HTML::Template directly with the XHTML file. Any ideas? Someone mentioned a patch to use {%TMPL_xxx%} instead of <TMPL_xxx>. Is there already a working version of this patch available? bye, Tobias |