Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

CheetahTemplate

From Wikipedia, the free encyclopedia
Template engine software
icon
This articleneeds additional citations forverification. Please helpimprove this article byadding citations to reliable sources. Unsourced material may be challenged and removed.
Find sources: "CheetahTemplate" – news ·newspapers ·books ·scholar ·JSTOR
(May 2017) (Learn how and when to remove this message)
CheetahTemplate
Original authorTavis Rudd
DeveloperOleg Broytman
Initial releaseJune 2001; 24 years ago (2001-06)[1]
Stable release
3.4.0.post5 / November 29, 2025; 2 months ago (2025-11-29)
Preview release
3.4.1a0 / December 2, 2024; 14 months ago (2024-12-02)
Written inPython
Operating systemCross-platform
TypeTemplate processor
LicenseMIT License
Websitecheetahtemplate.org

Cheetah (orCheetahTemplate) is atemplate engine that uses thePython programming language. It can be used standalone or combined with other tools and frameworks. It is often used forserver-side scripting anddynamic web content by generatingHTML, but can also be used togenerate source code. Cheetah isfreeopen-source software licensed under theMIT 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 theFreeBSD Ports collection and severalLinux distributions:Gentoo,Fedora,Debian, andUbuntu among others.

Example of Cheetah code

[edit]
#fromCheetah.TemplateimportTemplate#extendsTemplate#set$people=[{'name':'Tom','mood':'Happy'},{'name':'Dick',                        'mood' : 'Sad'}, {'name' : 'Harry', 'mood' : 'Hairy'}]<strong>How are you feeling?</strong><ul>#for$personin$people<li>$person['name'] is$person['mood']</li>#end for</ul>

[2]

References

[edit]
  1. ^Rudd, Tavis (June 10, 2001)."0.9.5". CheetahTemplate.
  2. ^Cheetah in a nutshell

External links

[edit]
Stub icon

ThisWeb-software-related article is astub. You can help Wikipedia byadding missing information.

Stub icon

Thisfree and open-source software article is astub. You can help Wikipedia byadding missing information.

Retrieved from "https://en.wikipedia.org/w/index.php?title=CheetahTemplate&oldid=1329119151"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2026 Movatter.jp