Re: Template inheritance and {% include %} tags

2008-09-19 Thread Simon Willison
On Sep 18, 11:58 pm, SmileyChris <[EMAIL PROTECTED]> wrote: > I think you missed the point, Simon. > > Michael isn't talking about self-referencing extending, he's talking > about blocks in statically included templates ({% include "bit.htm" > %}). Ah yes, sorry - misunderstood the original

Re: Template inheritance and {% include %} tags

2008-09-18 Thread SmileyChris
On Sep 19, 9:17 am, Simon Willison <[EMAIL PROTECTED]> wrote: > On Sep 18, 6:39 pm, Michael  Elsdörfer <[EMAIL PROTECTED]> wrote: > > > I remember this coming up on django-users and IRC once or twice, and > > never thought too much about it, but currently, template inheritance > > and includes

Re: Template inheritance and {% include %} tags

2008-09-18 Thread Michael Elsdörfer
> I've got a workaround for that which works pretty well: > > http://code.djangoproject.com/wiki/ExtendingTemplates Hm I might be misunderstanding, but it seems you're trying to workaround the situation where two templates might not be uniquely addressable. I can't quite make the connection to

Re: Template inheritance and {% include %} tags

2008-09-18 Thread Simon Willison
On Sep 18, 6:39 pm, Michael Elsdörfer <[EMAIL PROTECTED]> wrote: > I remember this coming up on django-users and IRC once or twice, and > never thought too much about it, but currently, template inheritance > and includes don't work together at all: > > * Blocks included in a parent template

Template inheritance and {% include %} tags

2008-09-18 Thread Michael Elsdörfer
I remember this coming up on django-users and IRC once or twice, and never thought too much about it, but currently, template inheritance and includes don't work together at all: * Blocks included in a parent template cannot be overwritten in a child template. * Blocks from an include in a child