Changeset 3635
- Timestamp:
- 08/21/06 13:27:33 (2 years ago)
- Files:
-
- django/trunk/docs/templates.txt (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/docs/templates.txt
r3485 r3635 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 … … 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 … … 364 366 Signal that this template extends a parent template. 365 367 366 This tag can be used in two ways: 368 This tag can be used in two ways: 367 369 368 370 * ``{% extends "base.html" %}`` (with quotes) uses the literal value … … 962 964 ~~~~~~~~~ 963 965 964 Returns a plural suffix if the value is not 1. By default, this suffix is ``'s'``. 966 Returns a plural suffix if the value is not 1. By default, this suffix is ``'s'``. 965 967 966 968 Example:: … … 968 970 You have {{ num_messages }} message{{ num_messages|pluralize }}. 969 971 970 For words that require a suffix other than ``'s'``, you can provide an alternate 972 For words that require a suffix other than ``'s'``, you can provide an alternate 971 973 suffix as a parameter to the filter. 972 974
