Sam Tregar wrote: > On Thu, 13 Apr 2006, Michael Peters wrote: > >> Is it possible to combine the 'escape' attribute of H::T with >> H::T::Expr? > > No, I don't think so. I don't think it would be too hard to add > support for it though. HTML::Template supports combining escape and > code-ref params, so it'd just be a matter of making the > HTML::Template::Expr parser smart enough to pass it through.
It looks like it also doesn't support 'default'. So by making the "parser smart enough" do you mean copying that huge regex from H::T and modifying it with the expr regex? A very simple approach would be to take any tmpl_vars/loops, etc that use expr and capture anything before the expr="..." and after it and then just add them to the generated tags. This however doesn't solve the sub-ref problem. -- Michael Peters Developer Plus Three, LP ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Html-template-users mailing list Html-template-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/html-template-users