[ZPT] Mini proposal: repeat-define and repeat-condition

Evan Simpson evan@4-am.com
Sun, 26 Jan 2003 08:53:43 -0600


Fernando Martins wrote:
> All right! I'm missing something!

Here's a more concrete example (tested):

<div tal:define="d python:{'a;;b': (1,2,3)}"
      tal:condition="exists:d/a;b"
      tal:repeat="n d/a;b"
      tal:context="n"></div>

Note that the semicolon in the tal:define is doubled, in order to 
prevent it being interpreted as a delimiter between definitions.  The 
tal:condition and tal:repeat, on the other hand, do not have multiple 
parts, so there is no need, or ability, to escape the semicolons.

Introducing multiple parts to tal:repeat would break this example.

Cheers,

Evan @ 4-am