Kid (templating language)


Kid is a simple template engine for XML-based vocabularies written in Python. Kid claims to have many of the best features of XSLT, TAL, and PHP, but "with much of the limitations and complexity stamped out".
Kid initially acted as the View component of the TurboGears framework in the framework's version 1.x implementation; however, the TurboGears project team has since replaced it with Genshi, citing perceived performance advantages.
Kid is used by the Fedora Project in the repoview utility
which creates a set of static HTML pages within a YUM repository.

Example

Python part:

from kid import Template
template = Template

Template part:

xmlns:py="http://purl.org/kid/ns#">

title <a href="/wiki/Goes">goes</a> here