From 67f94aa9f008dc2bf0fa1ea305e01be3d7d3b7e3 Mon Sep 17 00:00:00 2001 From: Ilya Puchka Date: Tue, 11 Sep 2018 18:55:30 +0100 Subject: [PATCH] Update docs --- docs/templates.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/templates.rst b/docs/templates.rst index d325635..0e605af 100644 --- a/docs/templates.rst +++ b/docs/templates.rst @@ -141,7 +141,7 @@ Let's take a look at an example. Here is our base template (``base.html``): This example declares three blocks, ``title``, ``sidebar`` and ``content``. We -can use the ``{% extends %}`` template tag to inherit from out base template +can use the ``{% extends %}`` template tag to inherit from our base template and then use ``{% block %}`` to override any blocks from our base template. A child template might look like the following: @@ -195,3 +195,5 @@ inheritance is the following three-level approach: extend ``base.html`` and include section-specific styles/design. * Create individual templates for each type of page, such as a news article or blog entry. These templates extend the appropriate section template. + +You can render block's content more than once by using ``{{ block.name }}`` **after** a block is defined.