CheetahTemplate 3.2.3

Oleg Broytman phd at
Fri May 10 14:24:11 EDT 2019


I'm pleased to announce version 3.2.3, the third bugfix release of branch
3.2 of CheetahTemplate3.

What's new in CheetahTemplate3

Bug fixes:

  - Fixed infinite recursion in ``ImportManager`` on importing
    a builtin module.


  - The site is now served with HTTPS.
  - Updated docs regarding fixed tests.


  - Removed ``unittest.main()`` calls from tests:
    ``python -m unittest discover -t Cheetah -s Cheetah/Tests -p '[A-Z]*.py'``
    does it.
  - Fixed ``cheetah test`` command.
  - Fixed script ``buildandrun``: copy test templates
    to the ``build/lib`` directory.

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




News and changes:



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>
        #for $person in $people
                $person['name'] is $person['mood']
        #end for

    Oleg Broytman              phd at
           Programmers don't die, they just GOSUB without RETURN.

More information about the Python-announce-list mailing list