can any of these 3 nest tags inside each other, even within the tag delimiters? ie ;
<link action="<qd>action</qd>">a link</link>
because doing tricks like that is a very big part of why i feel the system has merit worth discussion. | [reply] [d/l] |
While I can't speak to the three templating systems mentioned by anonymonk, I can say that I routinely use constructs such as <a href="<tmpl_var linkdest>">go to <tmpl_var linkdest></a> or <input name="<tmpl_var foo_name>" value="<tmpl_var foo_value>"> with HTML::Template. I would be exceedingly surprised if the others don't also allow such basic templating functionality.
The one caveat with this is that, if the templating tags aren't enclosed in quotes and they look like normal <> HTML tags, then the template will fail to validate as HTML - which is generally fine, so long as the HTML generated from the template is valid. Even so, HTML::Template allows you to use <!--tmpl_var foo--> as an alternative so that the validator will consider it to be a comment rather than a bad tag. (But, then, the same caveat applies to your example with the nested <qd></qd> tags, so I'm not sure why I bothered to mention it...)
| [reply] [d/l] [select] |