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

Charlie Clark charlie at begeistert.org
Thu Jul 31 19:06:45 EDT 2003


On 2003-07-31 at 17:45:14 [+0200], Fergal Daly wrote:
> Hi,
>     I'm sure this must have been done to death somewhere already but I 
>     can't find 
> much on it at all. Is there a plan to add if/elsif/else type stuff to 
> TAL? I know XML is not well suited to this kind of thing, which makes it 
> tricky, but not having an else is a pretty big deficiency.

XML isn't supposed to be fast to execute, just relatively simple to 
maintain.

I find that anything that goes beyond a tal:condition or python: test() is 
probably over-complex for ZPT and usually time for a PythonScript or an 
external method and I really like being encouraged down that path.

Charlie



More information about the ZPT mailing list