[Zope] Re: Filling a metal slot which name is known only at run time
Evan Simpson
evan at tokenexchange.com
Mon Dec 13 17:48:45 EST 2004
Martin Aspeli wrote:
> metal:fill-slot="python:here.getSlotToFill ()"
>
> though that doesn't work, because it doesn't evaulate the python:
> statement, taking it instead as a string (which is an invalid slot name).
>
> Can this be done?
I suppose it could, if you banged hard enough, but that's not really
what slots were made for... are you filling the slots with "live" ZPT
snippets, or just HTML? If the latter, you probably want to use
tal:content="structure stuff_to_insert".
Cheers,
Evan @ 4-am
More information about the Zope
mailing list