19 Apr
2001
19 Apr
'01
4:16 p.m.
From: "daniel dias" <diask8@yahoo.com.br>
<div metal:define-slot="main"> If you supply a tag with a 'fill-macro="main"' attribute when using this macro, that tag will replace this text. </div>
<div metal:fill-slot="main"> <p>Welcome to the machine</p> </div>
when I call template above it only shows the text "Welcome to the machine".
That is what should happen.
shouldn't appear " If you supply tag with ' fill-macro="main " ' attribute when using this macro, that tag will replace this text. " too?
No, that's the point of slots. If you supply a fill-slot with a matching slot name, the fill-slot tag replaces the define-slot tag. Cheers, Evan @ digicool