Skip to content
Myr

Documentation no longer mentiones "no multiple inheritance" support. that

Before adoption: this commit came in with the history the project adopted, so no landing records it.

just confuses people. --HG-- branch : trunk

authored by Armin Ronacher · committed by Armin Ronacher · parent 890dac0 · Browse files · 1 file+1 added−5 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−5 removed

  • other:+1 added−5 removed

1 file+1 added−5 removed

modified:docs/templates.rst+1 added-5 removed
352 unmodified lines
353 <title>{% block title %}{% endblock %}</title>354 <h1>{{ self.title() }}</h1>355 {% block body %}{% endblock %}356357Unlike Python Jinja does not support multiple inheritance. So you can only have358one extends tag called per rendering.357360358Super Blocks359~~~~~~~~~~~~360361It's possible to render the contents of the parent block by calling `super`.
366 unmodified lines
728~~~~~~~729730The `extends` tag can be used to extend a template from another one. You731can have multiple of them in a file but only one of them may be executed735at the time. There is no support for multiple inheritance. See the section736about :ref:`template-inheritance` above.732at the time. See the section about :ref:`template-inheritance` above.733734735Block736~~~~~
518 unmodified lines