Edgewall Software

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

genshi.template.markup

Markup templating engine.

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>


See ApiDocs, Documentation

Last modified 8 years ago Last modified on Apr 16, 2007 5:43:53 PM