Glasnost

help

 

TAL Statements: repeat

tal:repeat="variable expression"

The repeat statement replicates a sub-tree of the document for each item of a list. For each repetition, variable is set to the current list element.

An iteration object variable is also automatically set for each repetition: TAL Statements: repeat variable.

Example

<ul>
  <li tal:repeat="author currentObject.authorsSet">
    <span tal:replace="author.name">Name</span>
  </li>
</ul>
up