Location: PHPKode > scripts > PHPTAL > phptal/PHPTAL-1.2.1/tests/input/tal-repeat.07.html
<div tal:repeat="item result" phptal:tales="php">
    Item: <span tal:content="item"/>
    Length: <span tal:content="repeat.item.length"/>
    Odd: <span tal:content="repeat.item.odd"/>
    Even: <span tal:content="repeat.item.even"/>
    Start: <span tal:content="repeat.item.start"/>
    End: <span tal:content="repeat.item.end"/>
    Number: <span tal:content="repeat.item.number"/>
    Index: <span tal:content="repeat.item.index"/>
    Key: <span tal:content="repeat.item.key"/>
</div>
Return current item: PHPTAL