Location: PHPKode > scripts > PHPTAL > phptal/PHPTAL-1.2.1/tests/input/metal-slot.02.html
<div>
  <div metal:define-macro="test1">
    1:<span metal:define-slot="value">a value should go here</span>
  </div>

  <div metal:define-macro="test2">
    2a:<span metal:define-slot="value">a value should go here</span>
    2b:<span metal:define-slot="valuebis">another here</span>
  </div>

  <div metal:use-macro="test1">
    <div metal:fill-slot="valuebis">unused invalid valuebis</div>
    <div metal:fill-slot="value"  tal:omit-tag="">
      <div metal:use-macro="test2">
      <span metal:fill-slot="value">foo bar baz</span>
      </div>
    </div>
  </div>

</div>

Return current item: PHPTAL