[ZPT] allow duplicate defines?

Guido van Rossum guido@digicool.com
Mon, 25 Jun 2001 14:08:56 -0400


> It would make it easier to read when you have a lot of defines.
> Plus you might be able to arrange the defines better like:
> 
> <td tal:define="var1 here/some1"
>     tal:define="var2 python:var1+5"
>     tal:repeat="here/repeat_stuff"
>     tal:define="var3 here/dir/do_repeat"
>     tal:condition="var3">

TAL has a specific execution order: first define, then condition, then
repeat, etc.

What you want to do should be done using separate nested tags.

Also note that XML processors aren't required to maintain the order of
tag attributes (even though our parser does, attribute order is not in
the infoset).

--Guido van Rossum (home page: http://www.python.org/~guido/)