Home | Trees | Indices | Help |
|
---|
|
object --+ | base.Template --+ | OldTextTemplate
Legacy implementation of the old syntax text-based templates. This class is provided in a transition phase for backwards compatibility. New code should use the NewTextTemplate class and the improved syntax it provides.
>>> tmpl = OldTextTemplate('''Dear $name, ... ... We have the following items for you: ... #for item in items ... * $item ... #end ... ... All the best, ... Foobar''') >>> print tmpl.generate(name='Joe', items=[1, 2, 3]).render() Dear Joe, <BLANKLINE> We have the following items for you: * 1 * 2 * 3 <BLANKLINE> All the best, Foobar
Nested Classes | |
Inherited from |
Instance Methods | |
Inherited from Inherited from |
Class Variables | |
directives =
|
|
serializer =
|
|
Inherited from |
Properties | |
Inherited from |
Class Variable Details |
directives
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Wed Jul 9 18:16:21 2008 | http://epydoc.sourceforge.net |