https://github.com/cheetahtemplate3/cheetah3
Cheetah3 is a free (MIT) and open source template engine for Python.
https://github.com/cheetahtemplate3/cheetah3
mit-license python python2 python3 template-engine
Last synced: about 1 year ago
JSON representation
Cheetah3 is a free (MIT) and open source template engine for Python.
- Host: GitHub
- URL: https://github.com/cheetahtemplate3/cheetah3
- Owner: CheetahTemplate3
- License: other
- Created: 2017-10-17T21:42:59.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2025-04-11T12:14:49.000Z (about 1 year ago)
- Last Synced: 2025-05-11T21:49:08.632Z (about 1 year ago)
- Topics: mit-license, python, python2, python3, template-engine
- Language: Python
- Homepage: https://cheetahtemplate.org/
- Size: 5.38 MB
- Stars: 148
- Watchers: 11
- Forks: 37
- Open Issues: 1
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
- Roadmap: docs/roadmap.rst
Awesome Lists containing this project
README
Cheetah Template 3.4.0
======================
Cheetah3 is a free and open source (MIT) Python template engine.
It's a fork of the original CheetahTemplate library.
Python 2.7 or 3.4+ is required.
Where is CheetahTemplate3
=========================
Site:
https://cheetahtemplate.org/
Download:
https://pypi.org/project/CT3/
News and changes:
https://cheetahtemplate.org/news.html
StackOverflow:
https://stackoverflow.com/questions/tagged/cheetah
Mailing lists:
https://sourceforge.net/p/cheetahtemplate/mailman/
Development:
https://github.com/CheetahTemplate3
Developer Guide:
https://cheetahtemplate.org/dev_guide/
Example
=======
Install::
$ pip install CT3 # (or even "ct3")
Below is a simple example of some Cheetah code, as you can see it's practically
Python. You can import, inherit and define methods just like in a regular Python
module, since that's what your Cheetah templates are compiled to :) ::
#from Cheetah.Template import Template
#extends Template
#set $people = [{'name' : 'Tom', 'mood' : 'Happy'}, {'name' : 'Dick',
'mood' : 'Sad'}, {'name' : 'Harry', 'mood' : 'Hairy'}]
How are you feeling?
-
$person['name'] is $person['mood']
#for $person in $people
#end for