Genshi (templating language)

Genshi is a template engine for XML-based vocabularies written in Python.

Genshi is used to easily insert generated output into XML-based languages, usually HTML, and reuse elements between documents.

[3] Genshi can be used with several Python web frameworks, such as CherryPy,[4][5] TurboGears,[6] Pylons[7] and web2py.

A typical instruction is given as an attribute, with a Python expression inside the quotes.

For example, the following will render a paragraph that shows 4: Because of the use of namespaces, Genshi can be used in WYSIWYG HTML editors.