On 07.03.2010, at 15:44, Rowan @ Jetboy wrote:
A very simple example. If I have a macro with a slot:
div metal:define-macro=page
div metal:define-slot=slot/div
/div
and another macro:
div metal:define-macro=box
div tal:content=heading/div
/div
If I have a containing 'wrapper' element to a slot definition:
div class=wrapper
tal:block metal:define-slot=content /
/div
how can I show or hide 'wrapper' dependent on whether the slot's filled?
Slot filled:
div class=wrapper
pcontent/p
On 07.03.2010, at 18:42, Rowan @ Jetboy wrote:
If I have a containing 'wrapper' element to a slot definition:
div class=wrapper
tal:block metal:define-slot=content /
/div
how can I show or hide 'wrapper' dependent on whether the slot's filled?
Slot filled: