Chameleon is an open-source template engine written in Python. It implements both the Zope Pagetemplate specification (TAL and TALES) and a plain text format.
Chameleon is an open-source XML/HTML template engine written in python.
It’s designed to generate the document output of a web application, typically HTML markup or XML.
The language used is template-tal, originally a zope invention (see zpt), but available here as a standalone library that you can use in any script or application running Python 2.5 and up (including 3.x and pypy). It comes with a set of new features, too.
The template engine compiles templates into Python byte-code and is optimized for speed. For a complex template language, the performance is very good.
Features
- Fast — templates are compiled to byte-code.
- Extensible — it's easy to extend a language or create your own!
- Tested — automated tests guard against regressions.
Official website: http://chameleon.repoze.org/
Tag use
When asking questions about the template language, consider adding template-tal (TAL constructs) and / or template-metal (METAL macro constructs) as well.