Guix will hold its first online conference November 22nd. Propose a talk before November 6th. Learn more!

python-cheetah 3.2.4 Template engine

Cheetah is a text-based template engine and Python code generator.

Cheetah can be used as a standalone templating utility or referenced as a library from other Python applications. It has many potential uses, but web developers looking for a viable alternative to ASP, JSP, PHP and PSP are expected to be its principle user group.

Features:

  1. Generates HTML, SGML, XML, SQL, Postscript, form email, LaTeX, or any other text-based format.

  2. Cleanly separates content, graphic design, and program code.

  3. Blends the power and flexibility of Python with a simple template language that non-programmers can understand.

  4. Gives template writers full access to any Python data structure, module, function, object, or method in their templates.

  5. Makes code reuse easy by providing an object-orientated interface to templates that is accessible from Python code or other Cheetah templates. One template can subclass another and selectively reimplement sections of it.

  6. Provides a simple, yet powerful, caching mechanism that can dramatically improve the performance of a dynamic website.

  7. Compiles templates into optimized, yet readable, Python code.