[Zope] Referring to internal Metal Macros (in the same ZPT)?

Johan Carlsson [EasyPublisher] johanc@easypublisher.com
Mon, 31 Mar 2003 10:20:09 +0000


Hi,
Is there an easier way to refer to a macro defined in same ZPT that
calls the macro:

<html xmlns:tal="..." xmlns:metal="..."><body>

<div metal:define-macro="test">Test</div>

<div metal:define-macro="default">
         <div metal:use-macro="here/<this_zpt's_id>/macros/test"/>
</div>

</body></html>

What I would whan it:

<div metal:define-macro="default">
         <div metal:use-macro="macros/test"/>
</div>

where macros would be the local macros.
In this way I can rename the ZPT without breaking the functionality
of the template.

Best Regards,
Johan Carlsson


-- 
Easy Publisher Developers Team
Johan Carlsson
johanc@easypublisher.com

Mail:
Birkagatan 9
SE-113 36  Stockholm
Sweden

Phone +46-(0)8-32 31 23
Fax +46-(0)8-32 31 83
Mobil +46-(0)70-558 25 24
http://www.easypublisher.com