Chameleon is an open-source template engine written in Python. It's not a template language in itself, but it's used by several language implementations. Templates are compiled to Python byte-code which is the technique used by template libraries such as Mako and Cheetah. This approach is widely considered to provide optimal performance.