Home | Trees | Indices | Help |
|
---|
|
object --+ | base.Template --+ | MarkupTemplate
Implementation of the template language for XML-based templates.
>>> tmpl = MarkupTemplate('''<ul xmlns:py="http://genshi.edgewall.org/"> ... <li py:for="item in items">${item}</li> ... </ul>''') >>> print tmpl.generate(items=[1, 2, 3]) <ul> <li>1</li><li>2</li><li>3</li> </ul>
Nested Classes | |
Inherited from |
Instance Methods | |||
|
|||
Inherited from Inherited from |
Class Variables | |
EXEC = 'EXEC' Stream event kind representing a Python code suite to execute. |
|
INCLUDE = 'INCLUDE' Stream event kind representing the inclusion of another template. |
|
DIRECTIVE_NAMESPACE = <Namespace "http://genshi.edgewall.org/">
|
|
XINCLUDE_NAMESPACE = <Namespace "http://www.w3.org/2001/XInclu
|
|
directives =
|
|
Inherited from |
Properties | |
Inherited from |
Method Details |
|
Class Variable Details |
XINCLUDE_NAMESPACE
|
directives
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0beta1 on Tue Aug 14 11:00:59 2007 | http://epydoc.sourceforge.net |