[ZPT] Re: TAL's lack of an else...

Evan Simpson evan at 4-am.com
Thu Jul 31 13:29:45 EDT 2003


Fergal Daly wrote:
> Are either of these on the cards or does someone have a really clever idea 
> brewing?

A while back, I proposed tal:condition-group, which is much more 
powerful and well-defined than "else", but harder to understand.  Your 
example would be written:

<tag tal:condition-group="blah">
   <tag tal:condition="blah here/someexpensivetest">
     something
   </tag>
   <tag tal:condition="blah default">
     something else
   </tag>
</tag>

It extends to multi-way tests, and has several subtle features.  See:

http://mail.zope.org/pipermail/zpt/2003-April/004509.html

Cheers,

Evan @ 4-am





More information about the ZPT mailing list