 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.