Re: Template inheritance and duplicated content.

2011-06-09 Thread Armin Ronacher
Hi, On May 24, 10:58 am, Jonathan Slenders wrote: > I guess this is a flaw in the inheritance algorithm, only the most > outer blocks should be used during the resolving of inheritance. How else would it work? Think of a block like a function plus the execution of that function. By placing a ne

Re: Template inheritance and duplicated content.

2011-05-24 Thread Jonathan Slenders
Even more confusing, but extremely great to abuse! base.html {% block a %}{% endblock %} {% block b %}{% endblock %} {% block c %}{% endblock %} {% block d %}{% endblock %} {% block e %}{% endblock %} index.html {% block a %} {% block b %} {% block c %} {% blo

Template inheritance and duplicated content.

2011-05-24 Thread Jonathan Slenders
Hi all, This seems like a weirdness in template inheritance... base.html {% block title %} ... {% endblock %} {% block content %}... {% endblock %} index.html {% extends "base.html" %} {% block content %} {% block title %} some text {% endblock %} {% endblock %} The paragraph is sh