On Tue, May 31, 2011 at 12:52 PM, pbreit <[email protected]> wrote:
> What does "super" do? I don't see it in the docs.
Having a block defined in layout.html
{{block sidebar}}
<div>something</div>
{{end}}
if you want to extend this in any view and inherit the content of the
original you can use {{super}}
index.html
{{block sidebar}}
<div> another thing </div>
{{super}}
{{end}}
will be rendered as
<div>another thing</div>
<div>something<div>
--
Bruno Rocha
[ About me: http://zerp.ly/rochacbruno ]
[ Aprenda a programar: http://CursoDePython.com.br ]
[ O seu aliado nos cuidados com os animais: http://AnimalSystem.com.br ]
[ Consultoria em desenvolvimento web: http://www.blouweb.com ]