Home | Trees | Indices | Help |
|
---|
|
object --+ | base.DirectiveFactory --+ | 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 Inherited from |
Class Variables | |
DIRECTIVE_NAMESPACE =
|
|
XINCLUDE_NAMESPACE =
|
|
directives =
|
|
serializer =
hash(x) |
|
Inherited from |
Properties | |
Inherited from Inherited from |
Method Details |
|
DirectiveFactory for a given namespace.
Since: version 0.6 |
Class Variable Details |
directives
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Thu Jul 14 21:45:36 2011 | http://epydoc.sourceforge.net |