[Zope3-dev] New METAL extension feature
Paul Winkler
pw_lists at slinkp.com
Mon Nov 22 14:31:58 EST 2004
On Mon, Nov 22, 2004 at 11:46:56AM -0700, shane at hathawaymix.org wrote:
> On Mon, 22 Nov 2004, Paul Winkler wrote:
> >At least one of us is confused ;-)
> >Did you get that right, or is it:
> >
> ><html metal:define-macro="coolskin_page"
> > metal:use-macro="page">
> >
> >Otherwise, I don't see where coolskin_page comes from.
>
> "coolskin_page" refers to the "page" macro defined by coolskin. I should
> have written it this way:
>
> <html metal:define-macro="page"
> metal:use-macro="context/@@coolskin_macros/page">
OK, that clears it up. Thanks.
> "coolskin_macros" is a view that grabs the standard macros from coolskin.
> One of the standard macros in coolskin is "page", which comes from the
> first template I listed.
>
> The name of the macro being defined needs to be "page" because the
> convention in Zope 3 templates is to get the skin's page macro via
> "context/@@standard_macros/page".
Gotcha.
--
Paul Winkler
http://www.slinkp.com
More information about the Zope3-dev
mailing list