[Zope] How to define variables inside a loop in Zope Page Template

Evan Simpson evan@4-am.com
Sat, 4 Aug 2001 10:09:16 -0400


From: "Dirksen" <dirksen_lau@yahoo.com>
> Why this line doesn't work?
> <span tal:repeat="item here/objectValues" tal:define="header
item/title">

Because TAL doesn't pay attention to the order in which attributes
appear in a tag.  It *always* peforms tal:define before tal:repeat on
the same tag.  You will need to either place the tal:define on an
enclosed tag, or place the tal:repeat on an enclosing tag.

Cheers,

Evan @ 4-am