Skip to content
@CheetahTemplate3

Cheetah Template

Cheetah3 is a free template engine and code generation tool for Python

What is CheetahTemplate3

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'}]

<strong>How are you feeling?</strong>
<ul>
    #for $person in $people
        <li>
            $person['name'] is $person['mood']
        </li>
    #end for
</ul>

Pinned Loading

  1. cheetah3 cheetah3 Public

    Cheetah3 is a free (MIT) and open source template engine for Python.

    Python 139 37

  2. cheetahtemplate3.github.io cheetahtemplate3.github.io Public

    https://cheetahtemplate3.github.io/

    HTML 1

Repositories

Showing 5 of 5 repositories
  • cheetah3 Public

    Cheetah3 is a free (MIT) and open source template engine for Python.

    CheetahTemplate3/cheetah3’s past year of commit activity
    Python 139 37 0 0 Updated Nov 14, 2024
  • CheetahTemplate3/cheetahtemplate3.github.io’s past year of commit activity
    HTML 1 0 0 0 Updated Feb 28, 2024
  • django-cheetahtemplate Public

    Use CheetahTemplate3 in Django.

    CheetahTemplate3/django-cheetahtemplate’s past year of commit activity
    Python 6 0 0 0 Updated Oct 30, 2022
  • .github Public

    The public profile repository.

    CheetahTemplate3/.github’s past year of commit activity
    0 0 0 0 Updated Sep 25, 2022
  • CT3 Public archive

    A dummy PyPI package that installs Cheetah3 as the dependency.

    CheetahTemplate3/CT3’s past year of commit activity
    Python 0 0 0 0 Updated Sep 21, 2022

Top languages

Loading…

Most used topics

Loading…