Ticket #2580: template-inheritance-docs.patch
File template-inheritance-docs.patch, 721 bytes (added by , 18 years ago) |
---|
-
templates.txt
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 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 %}``