[Zope3-dev] New METAL extension feature

Paul Winkler pw_lists at slinkp.com
Mon Nov 22 13:25:00 EST 2004


On Mon, Nov 22, 2004 at 11:12:37AM -0700, shane at hathawaymix.org wrote:
> Let's say some graphic designers get together and develop a nice skin. 
> Here is its page macro:
> 
> <html metal:define-macro="page">
>  <head>
>   <metal:block define-slot="headers" />
>   <title metal:define-slot="title">Cool Skin</title>
>  </head>
>  <body>
>   <div metal:define-slot="content" />
>   <div metal:define-slot="footer" />
>  </body>
> </html>
> 
> An independent company wants to customize that skin, replacing certain 
> slots.  The company would use macro extension:
> 
> <html metal:define-macro="page"
>       metal:use-macro="coolskin_page">

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.

-- 

Paul Winkler
http://www.slinkp.com


More information about the Zope3-dev mailing list