[ZPT] Re: define-slot nested inside fill-slot

Evan Simpson evan at 4-am.com
Thu Dec 18 11:53:08 EST 2003


Tim Lynch wrote:
> Can someone explain the purpose of the define-slot statement
> inside the fill-slot?

When you use a macro, every slot in the macro is filled either with 
explicit fill-slot statements or with the default slot contents from the 
definition.  Therefore, if you are "refining" a macro by using it in 
another macro definition, and you want to pass the slot through 
(allowing it to be filled by users of the new macro), you need to 
re-define the slot.  Unfortunately, the current TAL code can't handle 
re-defining a slot on the same element that fills it.

Cheers,

Evan @ 4-am





More information about the ZPT mailing list