"Fossies" - the Fresh Open Source Software Archive

Member "cheetah3-3.2.6.post2/ANNOUNCE.rst" (20 Apr 2021, 1504 Bytes) of package /linux/www/cheetah3-3.2.6.post2.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format (assuming markdown format). Alternatively you can here view or download the uninterpreted source code file. A member file download can also be achieved by clicking within a package contents listing on the according byte size field. See also the latest Fossies "Diffs" side-by-side code changes report for "ANNOUNCE.rst": 3-3.2.6.post1_vs_3-3.2.6.post2.

Hello!

I'm pleased to announce version 3.2.6.post2, the 2nd post-release for bugfix release 3.2.6 of branch 3.2 of CheetahTemplate3.

What's new in CheetahTemplate3

The contributor for the release is odidev.

Build, CI:

What is CheetahTemplate3

Cheetah3 is a free and open source 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/

Development: https://github.com/CheetahTemplate3

Download: https://pypi.org/project/Cheetah3/3.2.6.post2

News and changes: https://cheetahtemplate.org/news.html

StackOverflow: https://stackoverflow.com/questions/tagged/cheetah

Example

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>