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 =
A list of (name, cls) tuples that define the set of directives provided by this factory. |
|
serializer =
hash(x) |
|
Inherited from |
Properties | |
Inherited from Inherited from |
Method Details |
|
Since: version 0.6 |
Class Variable Details |
directivesA list of (name, cls) tuples that define the set of directives provided by this factory.
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Thu Apr 22 14:10:37 2010 | http://epydoc.sourceforge.net |