From: Evan Sonderegger Date: Thu, 8 Jan 2015 01:01:40 +0000 (-0500) Subject: Updated template documentation examples X-Git-Tag: 2.8~43^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b8230a73bbdbb4fd3780040f4ebde466a23785b2;p=thirdparty%2Fjinja.git Updated template documentation examples Fixed html tags in base template example. Since I was removing the xmlns="http://www.w3.org/1999/xhtml" tag, it seemed like a good time to update the examples to the html5 doctype. --- diff --git a/docs/templates.rst b/docs/templates.rst index 81af9e29..b154764f 100644 --- a/docs/templates.rst +++ b/docs/templates.rst @@ -24,7 +24,7 @@ the template. The template syntax is heavily inspired by Django and Python. Below is a minimal template that illustrates a few basics. We will cover the details later in that document:: - + My Webpage @@ -322,9 +322,8 @@ This template, which we'll call ``base.html``, defines a simple HTML skeleton document that you might use for a simple two-column page. It's the job of "child" templates to fill the empty blocks with content:: - + - {% block head %} @@ -339,6 +338,7 @@ document that you might use for a simple two-column page. It's the job of {% endblock %} + In this example, the ``{% block %}`` tags define four blocks that child templates can fill in. All the `block` tag does is to tell the template engine that a