[Zope] nested metal macros
Dieter Maurer
dieter at handshake.de
Tue Aug 22 13:13:25 EDT 2006
Antonio Beamud Montero wrote at 2006-8-22 08:46 +0200:
> ...
>----------------- MacroB
><div xmlns:metal="http://xml.zope.org/namespaces/metal"
> metal:use-macro="container/macroA/macros/macroA">
><span metal:fill-slot="slotA">
> <div align="center" metal:define-macro="macroB">
> <span metal:define-slot="slotB"></span>
> </div>
></span>
></div>
"macroB" is only the inner "div" not the complete content of
your page template.
> ...
>I think all the process is as follows:
>Page calls macroB, macroB calls macroA, and all the code is rendered,
>the problem is only the code inside macroB is rendered...
"macroB" does not call "macroA" because "macroB" does not
contain a "use-macro" for "macroA".
>It's posible to nest macros this way?
Not the way you try it...
--
Dieter
More information about the Zope
mailing list