CheetahTemplate explained

CheetahTemplate
Author:Tavis Rudd
Developer:Oleg Broytman
Released:[1]
Latest Release Version:3.3.3
Latest Preview Version:3.3.4a0
Operating System:Cross-platform
Programming Language:Python
Genre:Template processor
License:MIT License

Cheetah (or CheetahTemplate) is a template engine that uses the Python programming language. It can be used standalone or combined with other tools and frameworks. It is often used for server-side scripting and dynamic web content by generating HTML, but can also be used to generate source code. Cheetah is free/open-source software licensed under the MIT License.

Templating engines encourage clean separation of content, graphic design, and program code. This leads to more modular, flexible, and reusable site architectures, shorter development time, and code that is easier to understand and maintain. Cheetah compiles templates into optimized, yet readable, Python code. It gives template authors full access to any Python data, and functionality, while providing a way for administrators to selectively restrict access to Python when needed.

Cheetah is included in the FreeBSD Ports collection and several Linux distributions: Gentoo, Fedora, Debian, and Ubuntu among others.

Example of Cheetah code

  1. from Cheetah.Template import Template
  2. extends Template
  3. set $people = [{'name' : 'Tom', 'mood' : 'Happy'}, {'name' : 'Dick', 'mood' : 'Sad'}, {'name' : 'Harry', 'mood' : 'Hairy'}]

How are you feeling?

[2]

External links

Notes and References

  1. Web site: Rudd . Tavis . 0.9.5 . CheetahTemplate . June 10, 2001.
  2. https://cheetahtemplate.org/#cheetah-in-a-nutshell Cheetah in a nutshell