Changeset 7299
- Timestamp:
- 03/18/08 13:41:52 (6 months ago)
- Files:
-
- django/trunk/docs/templates.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/docs/templates.txt
r7294 r7299 430 430 431 431 {% autoescape off %} 432 <h1>{% block title %} </h1>432 <h1>{% block title %}{% endblock %}</h1> 433 433 {% block content %} 434 {% endblock %} 434 435 {% endautoescape %} 435 436 … … 439 440 {% extends "base.html" %} 440 441 {% block title %}This & that{% endblock %} 441 {% block content %} <b>Hello!</b>{% endblock %}442 {% block content %}{{ greeting }}{% endblock %} 442 443 443 444 Because auto-escaping is turned off in the base template, it will also be 444 turned off in the child template, resulting in the following rendered HTML:: 445 turned off in the child template, resulting in the following rendered 446 HTML when the ``greeting`` variable contains the string ``<b>Hello!</b>``:: 445 447 446 448 <h1>This & that</h1>
