[ZPT] METAL slots within each other
Evan Simpson
evan@zope.com
Fri, 15 Mar 2002 11:16:38 -0500
Chris Withers wrote:
> <html metal:define-macro="page">
> <body metal:define-slot="body">
> <p tal:content="here/Title">A Title</p>
> <table metal:define-slot="table">
> <!-- standard tabel here -->
> </table>
> </body>
> </html>
>
> If I do a fill slot on body, it simply doesn't substitute and the default content is show.
This isn't supported, but it almost works. The only problem is that
macro expansion inserts a "fill-slot" whether the slot was filled or
not. If you don't expand macros, or carefully delete the
metal:define-slot="body" every time you edit, you can fill the table
slot (at least in the latest 2.5 code).
Cheers,
Evan @ Zope