Re: Newbie questions concerning nesting blocks, for loop and super

2009-01-13 Thread dr.mob...@googlemail.com
Ah, I see - thanks Karen - your explanation clarifies/(puts to rest) a number of points I had in my head when experimenting with the templates! Reading it again now, I think the thing with super, could do with being explained a bit differently (putting a for loop in was irrelevant, and misleading)

Re: Newbie questions concerning nesting blocks, for loop and super

2009-01-13 Thread Karen Tracey
On Tue, Jan 13, 2009 at 12:31 PM, dr.mob...@googlemail.com < dr.mob...@googlemail.com> wrote: > > Hello, > I'm new to DJango, but I'm already lovin' it. I have a few questions > however - can someone offer any guidance, please? > > Is the possible following in a template: > { inherits ... } > I t

Newbie questions concerning nesting blocks, for loop and super

2009-01-13 Thread dr.mob...@googlemail.com
Hello, I'm new to DJango, but I'm already lovin' it. I have a few questions however - can someone offer any guidance, please? Is the possible following in a template: { inherits ... } {% for item in items %} {% block A %} some text here {% endblock A %} {% block B %} s