[ZPT] Macro expansion and slots

Jeff Peterson jpeterso@rangebroadband.com
Tue, 18 Feb 2003 10:49:08 -0600


OK, I'll buy that....

> -----Original Message-----
> From: Evan Simpson [mailto:evan@4-am.com]
> Sent: Tuesday, February 18, 2003 10:36 AM
> To: zpt@zope.org
> Cc: Jeff Peterson
> Subject: Re: [ZPT] Macro expansion and slots
> 
> 
> Jeff Peterson wrote:
> >       <p metal:slot="para">   <<-- not "fill-slot" as above
> > 
> > And as such the content is not editable unless I change it to a 
> fill slot
> 
> This is actually the purpose of the change.  With the prior behavior, 
> there was no way to spell "I haven't filled/don't intend to fill this 
> slot".  The first time your template expanded a macro, the contents of 
> any "define-slot" would be copied into a "fill-slot".  Thereafter, any 
> change to the macro's "define-slot" contents would not be reflected in 
> your template unless you deleted the "fill-slot" element and re-expanded 
> the template.
> 
> Now, the "slot" attribute acts as a placeholder, allowing you to see 
> each slot that you haven't yet filled.
> 
> Cheers,
> 
> Evan @ 4-am
>