Changeset 49
- Timestamp:
- 07/15/05 10:31:20 (3 years ago)
- Files:
-
- django/trunk/docs/overview.txt (added)
- django/trunk/docs/templates.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/docs/templates.txt
r44 r49 22 22 which control the logic of the template. 23 23 24 Below is a minimal template that I'll be using to illustrate the parts of a template throughout this introduction:: 24 Below is a minimal template that I'll be using to illustrate the parts of a 25 template throughout this introduction:: 25 26 26 27 {% extends base_generic %} … … 48 49 the result. Many variables will be structures with named attributes; you can 49 50 "drill down" into these structures with dots (``.``), so in the above example `` 50 {{ section.title }}`` will be replace swith the ``title`` attribute of the51 {{ section.title }}`` will be replaced with the ``title`` attribute of the 51 52 ``section`` object. 52 53 … … 62 63 ================ 63 64 64 Filters look like this: ``{{ name|lower }}``. This display the value of the65 Filters look like this: ``{{ name|lower }}``. This displays the value of the 65 66 ``{{ name }}`` variable after being filtered through the ``lower`` filter which, 66 67 as you might have guessed, lowercases the text passed through it.
