[Zope] ZPT macro using a macro from the same page template
Gilles Lenfant
gilles@pilotsystems.net
Tue, 22 Jul 2003 17:34:41 +0200
----- Original Message -----
From: "Jens Vagelpohl" <jens@zope.com>
To: "Gilles Lenfant" <gilles@pilotsystems.net>
Cc: <zope@zope.org>
Sent: Tuesday, July 22, 2003 4:57 PM
Subject: Re: [Zope] ZPT macro using a macro from the same page template
> template/macros/aux
>
> jens
>
Thanks but, it seems that no !
In that case, "template" refers to the Page templates that uses the "main"
macro (any template in the site).
It seems that "template", "here" (...) are passed along from the first Page
template executed to the ones that contain the executed macros.
--Gilles
>
> On Tuesday, Jul 22, 2003, at 09:44 US/Eastern, 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>
> >
> > Thanks in advance for the hints
> >
> > --Gilles
>
>
>