Location: PHPKode > projects > PHPTAL > PHPTAL-1.2.2/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