31 Mar
2003
31 Mar
'03
12:42 p.m.
have you tried <div metal:use-macro="template/macros/test" /> ? jens On Monday, Mar 31, 2003, at 05:20 US/Eastern, Johan Carlsson [EasyPublisher] wrote:
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