[Zope] tal:repeat

Chris Withers chrisw@nipltd.com
Mon, 18 Feb 2002 15:02:49 +0000


Daniel Meier wrote:
> 
> <dtml-in .... mapping>
> 
> how do I do the "mapping" in zpt tal:repeat?

you don't really need to:

<dtml-in my_stuff mapping>
 <dtml-var x>
 <dtml-var y>
</dtml-in>

...becomes:

<tal:i tal:repeat="item my_stuff">
 <tal:x tal:replace="item/x" />
 <tal:x tal:replace="item/y" />
</tal:i>

cheers,

Chris