Edgewall Software

Version 1 (modified by cmlenz, 7 years ago) (diff)

Branch 0.5.x docs

Error: Macro Title(genshi.template.markup) failed
pre-0.11 Wiki macro Title by provider <class 'Title.TitleMacro'> no longer supported


Markup templating engine.


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])

See Genshi XML Template Language, ApiDocs/0.5.x, Documentation