@@ -141,6 +141,7 @@ It's easiest to understand template inheritance by starting with an example::
141
141
{% block content %}{% endblock %}
142
142
</div>
143
143
</body>
144
+ </html>
144
145
145
146
This template, which we'll call ``base.html``, defines a simple HTML skeleton
146
147
document that you might use for a simple two-column page. It's the job of
@@ -196,6 +197,7 @@ like::
196
197
<p>This is my second entry.</p>
197
198
</div>
198
199
</body>
200
+ </html>
199
201
200
202
Note that since the child template didn't define the ``sidebar`` block, the
201
203
value from the parent template is used instead. Content within a ``{% block %}``
@@ -363,7 +365,7 @@ extends
363
365
364
366
Signal that this template extends a parent template.
365
367
366
- This tag can be used in two ways:
368
+ This tag can be used in two ways:
367
369
368
370
* ``{% extends "base.html" %}`` (with quotes) uses the literal value
369
371
``"base.html"`` as the name of the parent template to extend.
@@ -961,13 +963,13 @@ any string.
961
963
pluralize
962
964
~~~~~~~~~
963
965
964
- Returns a plural suffix if the value is not 1. By default, this suffix is ``'s'``.
966
+ Returns a plural suffix if the value is not 1. By default, this suffix is ``'s'``.
965
967
966
968
Example::
967
969
968
970
You have {{ num_messages }} message{{ num_messages|pluralize }}.
969
971
970
- For words that require a suffix other than ``'s'``, you can provide an alternate
972
+ For words that require a suffix other than ``'s'``, you can provide an alternate
971
973
suffix as a parameter to the filter.
972
974
973
975
Example::
0 commit comments