Ticket #2580: template-inheritance-docs.patch

File template-inheritance-docs.patch, 721 bytes (added by jonathan-django@…, 18 years ago)

Patch for "Template Inheritance" documentation's HTML code.

  • templates.txt

     
    141141            {% block content %}{% endblock %}
    142142        </div>
    143143    </body>
     144    </html>
    144145
    145146This template, which we'll call ``base.html``, defines a simple HTML skeleton
    146147document that you might use for a simple two-column page. It's the job of
     
    196197            <p>This is my second entry.</p>
    197198        </div>
    198199    </body>
     200    </html>
    199201
    200202Note that since the child template didn't define the ``sidebar`` block, the
    201203value from the parent template is used instead. Content within a ``{% block %}``
Back to Top