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

Chris Withers chrisw at nipltd.com
Sat Aug 2 11:51:49 EDT 2003


Fergal Daly wrote:
> Yep, but that's programming in XML for you. Anyway, the alternative if even 
> worse

I don't agree ;-)

> <tal:x tal:define="temp_cond_var user/isLoggedIn">
>   <tal:x tal:condition="temp_cond_var">
>     welcome
>   </tal:x>
>   <tal:x tal:condition="not:temp_cond_var">
>     please login
>   </tal:x>
> </tal:x>

This contains the same level of complexity as the tal:condition-group stuff you 
and Evan are proposing, but doesn't require knowledge of more syntax.

Chris




More information about the ZPT mailing list