Django

Code

Changeset 49

Show
Ignore:
Timestamp:
07/15/05 10:31:20 (3 years ago)
Author:
jacob
Message:

More doc improvments: moved overview into doc system so it can be distributed with the package, and fixed a few spelling errors in templates doc (fixes #31).

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/docs/templates.txt

    r44 r49  
    2222which control the logic of the template. 
    2323 
    24 Below is a minimal template that I'll be using to illustrate the parts of a template throughout this introduction:: 
     24Below is a minimal template that I'll be using to illustrate the parts of a 
     25template throughout this introduction:: 
    2526 
    2627    {% extends base_generic %} 
     
    4849the result.  Many variables will be structures with named attributes; you can 
    4950"drill down" into these structures with dots (``.``), so in the above example `` 
    50 {{ section.title }}`` will be replaces with the ``title`` attribute of the 
     51{{ section.title }}`` will be replaced with the ``title`` attribute of the 
    5152``section`` object. 
    5253 
     
    6263================ 
    6364 
    64 Filters look like this: ``{{ name|lower }}``.  This display the value of the 
     65Filters look like this: ``{{ name|lower }}``.  This displays the value of the 
    6566``{{ name }}`` variable after being filtered through the ``lower`` filter which, 
    6667as you might have guessed, lowercases the text passed through it.