Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add closing html tag

  • Loading branch information...
commit a92588f161221dc1428eb3bc701ca79eb2a3ca11 1 parent bfeee75
Alex Couper authored
Showing with 9 additions and 8 deletions.
  1. +9 −8 docs/patterns/templateinheritance.rst
View
17 docs/patterns/templateinheritance.rst
@@ -28,14 +28,15 @@ document that you might use for a simple two-column page. It's the job of
<title>{% block title %}{% endblock %} - My Webpage</title>
{% endblock %}
</head>
- <body>
- <div id="content">{% block content %}{% endblock %}</div>
- <div id="footer">
- {% block footer %}
- &copy; Copyright 2010 by <a href="http://domain.invalid/">you</a>.
- {% endblock %}
- </div>
- </body>
+ <body>
+ <div id="content">{% block content %}{% endblock %}</div>
+ <div id="footer">
+ {% block footer %}
+ &copy; Copyright 2010 by <a href="http://domain.invalid/">you</a>.
+ {% endblock %}
+ </div>
+ </body>
+ </html>
In this example, the ``{% block %}`` tags define four blocks that child templates
can fill in. All the `block` tag does is tell the template engine that a
Please sign in to comment.
Something went wrong with that request. Please try again.