Browse Source

Add closing html tag

pull/683/head
Alex Couper 12 years ago
parent
commit
a92588f161
  1. 17
      docs/patterns/templateinheritance.rst

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> <title>{% block title %}{% endblock %} - My Webpage</title>
{% endblock %} {% endblock %}
</head> </head>
<body> <body>
<div id="content">{% block content %}{% endblock %}</div> <div id="content">{% block content %}{% endblock %}</div>
<div id="footer"> <div id="footer">
{% block footer %} {% block footer %}
&copy; Copyright 2010 by <a href="http://domain.invalid/">you</a>. &copy; Copyright 2010 by <a href="http://domain.invalid/">you</a>.
{% endblock %} {% endblock %}
</div> </div>
</body> </body>
</html>
In this example, the ``{% block %}`` tags define four blocks that child templates 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 can fill in. All the `block` tag does is tell the template engine that a

Loading…
Cancel
Save