Django

Code

Changeset 7647

Show
Ignore:
Timestamp:
06/15/08 22:35:50 (5 months ago)
Author:
adrian
Message:

Fixed #6898 -- Fixed some typos in docs/templates_python.txt. Thanks, djoume

Files:

Legend:

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

    r7294 r7647  
    10601060Although you can pass any number of arguments to a template tag using 
    10611061``token.split_contents()``, the arguments are all unpacked as 
    1062 string literals. A little more work is required in order to dynamic content (a 
    1063 template variable) to a template tag as an argument. 
     1062string literals. A little more work is required in order to pass dynamic 
     1063content (a template variable) to a template tag as an argument. 
    10641064 
    10651065While the previous examples have formatted the current time into a string and 
     
    11701170 
    11711171    @register.simple_tag 
    1172     def current_time(token): 
     1172    def current_time(format_string): 
    11731173        ... 
    11741174 
    11751175A couple of things to note about the ``simple_tag`` helper function: 
     1176 
    11761177    * Checking for the required number of arguments, etc, has already been 
    11771178      done by the time our function is called, so we don't need to do that.