[ZPT] changing the order of operations
Jamie Heilman
jamie at audible.transient.net
Mon Jul 28 03:49:41 EDT 2003
Chris Withers wrote:
> > but it probably is an error
>
> Sorry, lost me, what is 'it' here?
The case of tal:attributes="something" tal:omit-tag="" in the same tag.
As it currently stands, this combination doesn't make any sense. If
the order were switched I'd be less inclined to actually check for
this case because its just like saying "if 0:" which can be handy when
disabling something for a quick check. The problem right now is that
all the work isn't being short-circuited.
> Hang on, actually, doesn't tal:omit-tag="" mean that the tag is _always_
> included?
No, always omitted.
> Can someone help my brain out here?
If the omit-tag expression evaluates to true, or is empty, the tag is
omitted.
--
Jamie Heilman http://audible.transient.net/~jamie/
"...thats the metaphorical equivalent of flopping your wedding tackle
into a lion's mouth and flicking his lovespuds with a wet towel, pure
insanity..." -Rimmer
More information about the ZPT
mailing list