[ZPT] If/else?

Evan Simpson evan@digicool.com
Wed, 9 May 2001 17:10:20 -0400


From: "Chris Withers" <chrisw@nipltd.com>
> > <div tal:replace="python:if(doChange(), ..., default)">
>
> All this stuff in ZPT looks like it's becoming even more complicated that
DTML

Well, the DTML equivalent of this would be:

<dtml-if expr="doChange()">
  <dtml-var something>
<dtml-else>
  Example Text
</dtml-if>

I think your perception of complexity may be coming from all the different
alternatives we've been trying out, combined with the things that we have to
do to remain within the ZPT goal of source looking like rendering.

Cheers,

Evan @ digicool