Location: PHPKode > scripts > PHPTAL > phptal/PHPTAL-1.2.1/tests/input/tal-repeat.06.html
<div>
  <metal:block define-macro="test">
    <div tal:content="php:repeat.item.index"/>
  </metal:block>

  <div
    tal:repeat="item data"
    metal:use-macro="test"
  />
</div>
Return current item: PHPTAL