Django | The Django template language: For template authors |...
Popularity Report
![]() |
|||
![]() |
|||
![]() |
|||
![]() |
|||
![]() |
|||
![]() |
URL Tag Cloud
Bookmark History
Saved by 9 people (-5 private), first by anonymouse user on 2007-10-01
Public Sticky notes
The most powerful — and thus the most complex — part of Django’s template
engine is template inheritance.
Highlighted by jldupont
Note that since the child template didn’t define the sidebar block, the
value from the parent template is used instead.
Highlighted by jldupont
If you need to get the content of the block from the parent template,
the {{ block.super }} variable will do the trick. This is useful
if you want to add to the contents of a parent block instead of
completely overriding it. Data inserted using {{ block.super }} will
not be automatically escaped (see the next section), since it was
already escaped, if necessary, in the parent template.
Highlighted by rraghur
When you load a custom tag or filter library, the tags/filters are only made
available to the current template — not any parent or child templates along
the template-inheritance path.
Highlighted by jldupont


Public Comment