[ZPT] changing the order of operations
Chris Withers
chrisw at nipltd.com
Mon Jul 28 11:42:38 EDT 2003
Fred L. Drake, Jr. wrote:
> Jamie pointed out why you'd want both when you give an expression to
> tal:omit-tag,
Indeed. Think a username where you want to make it an <a href="mailto:"> to send
that person an email when you click on their name. You don't want the name to be
a link if you don't have an email address for them ;-)
> but it probably is an error
Sorry, lost me, what is 'it' here?
> when using tal:omit-tag="",
> and that's a common case.
Yeah, but I think most people prefer just to shove stuff into the tal: or metal:
namespaces nowadays:
<tal:username content="username">Fred</tal:username>
Hang on, actually, doesn't tal:omit-tag="" mean that the tag is _always_ included?
I've often wished TAL had an include-tag command instead:
<a href=""
tal:include-tag="here/email"
tal:attributes="href string:mailto:${here/email}
tal:content="here/username">Fred</a>
But, if that's how tal:omit-tag works, then it's just plain wrong :-(
Can someone help my brain out here?
cheers,
Chris
More information about the ZPT
mailing list