Changeset 3452:7d9dd092cc43 in livinglogic.python.xist for docs/UL4.rst

Show
Ignore:
Timestamp:
07/04/08 15:37:28 (11 years ago)
Author:
Walter Doerwald <walter@…>
Branch:
default
Message:

Document the new repr(). Fix render example.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • docs/UL4.rst

    r3451 r3452  
    318318I.e. a dictionary of templates can be passed to the render methods as the first 
    319319argument. The keys in this dictionary are the names of the templates, which can 
    320 be used in the ``<?render?>`` tag. ``<?render itemtmpl(item)?>`` renders the 
    321 ``itemtmpl`` template and passed the ``item`` variable, which will be available 
    322 in the inner template under the name ``item``. All templates available in the 
    323 outer template will be available in the inner template too. 
     320be used in the ``<?render?>`` tag. ``<?render itemtmpl(item=item)?>`` renders 
     321the ``itemtmpl`` template and passed the ``item`` variable, which will be 
     322available in the inner template under the name ``item``. All templates available 
     323in the outer template will be available in the inner template too. 
    324324 
    325325 
     
    485485``repr(foo)`` converts ``foo`` to a string representation that is useful for 
    486486debugging proposes. The output is a constant expression that could be used to 
    487 recreate the object (except for list and dict, where ``repr`` follows the format 
    488 of Python's :func:`repr` function). 
     487recreate the object. 
    489488 
    490489