Changeset 3701:53324f8b687d in livinglogic.python.xist

Show
Ignore:
Timestamp:
02/14/09 23:27:35 (10 years ago)
Author:
Walter Doerwald <walter@…>
Branch:
default
Message:

Document the new render() method.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • docs/UL4.rst

    r3646 r3701  
    798798``k`` is in ``d``, else ``v`` is returned. If ``v`` is not given, it defaults 
    799799to ``None``. 
     800 
     801 
     802``render`` 
     803:::::::::: 
     804 
     805The ``render`` method of template objects renders the template and returns the 
     806output as a string. The parameter can be passed via keyword argument or via the 
     807``**`` syntax:: 
     808 
     809    <?code output = template.render(a=17, b=23)?> 
     810    <?code data = {'a': 17, 'b': 23)?> 
     811    <?code output = template.render(**data)?>