On Sat, May 4, 2013 at 12:21 AM, Malthe Borch <[email protected]> wrote:

> On 4 May 2013 00:48, Mike Orr <[email protected]> wrote:
> > Are there any good examples around of using Chameleon with a site
> template
> > macro?
>
> Chameleon makes it pretty easy I'd say to use a site template:
>
> <html metal:use-macro="load: ../master.pt">
>    <div metal:fill-slot="content">
>       <h1>${title}</h1>
>       ...
>    </div>
> </html>
>
> You can also use ``metal:extend-macro`` to make a linear
> specialization that keeps slots "fillable". For instance, you might
> specialize your "master.pt" template into a "content.pt" template that
> is then the basis of all content object views.
>
>
I saw extend-macro but didn't quite understand what it does or how to use
it. How would you use it with your example above?

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pylons-discuss?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to