[Zope] ZPT macro using a macro from the same page template
Paul Winkler
pw_lists@slinkp.com
Tue, 22 Jul 2003 11:12:24 -0400
On Tue, Jul 22, 2003 at 03:44:17PM +0200, Gilles Lenfant wrote:
> Hi,
>
> I made an all purpose widget macros collection template, and one macro from
> the template is used by another one.
>
> Is there a kind of shortcut to tell the main macro that the secondary macro
> is defined in the same template ?
>
> <div metal:define-macro="aux">
> </div>
> <div metal:define-macro="main">
> <div metal:use-macro="xxx/aux">
> </div>
> </div>
untested, but this seems like the obvious solution to me:
<div metal:define-macro="main">
<div metal:use-macro="template/macros/aux">
</div>
</div>
--
Paul Winkler
http://www.slinkp.com
Look! Up in the sky! It's ULTRA PRETERNATURAL SHEPHERD!
(random hero from isometric.spaceninja.com)