[ZPT] METAL, fill-slot and define-macron in the same PT

Evan Simpson evan@digicool.com
Thu, 31 May 2001 16:23:26 -0500


I've kind of lost track of exactly what you are trying to do, but in ZPT
1.3.1 you can do this:

Template 1:
<table metal:define-macro="menu">
  <tr tal:repeat="item in items">
    <td><span tal:replace="repeat/item/index">1</span>
            <span tal:replace="item">Item</span>
    </td>
  </tr>
</table>

Template 2:
<div tal:define="items python:['One', 'Two', 'Three']">
  <table metal:use-macro="here/T1/macros/menu">
  </table>
</div>

Does this help any?

Cheers,

Evan @ digicool