If I have a containing 'wrapper' element to a slot definition:

        <div class="wrapper">
                <tal:block metal:define-slot="content" />

how can I show or hide 'wrapper' dependent on whether the slot's filled?

Slot filled:

        <div class="wrapper">

Slot unfilled:


I appreciate I can move the slot definition to the 'wrapper' element, but
this would mean having to insert 'wrapper', in addition to the content,
whenever I wanted to use the slot. Presumably there's a better way?

PHPTAL mailing list

Reply via email to