![](https://secure.gravatar.com/avatar/512cfbaf98d63ca4acd57b2df792aec6.jpg?s=120&d=mm&r=g)
Hello! I'm pleased to announce version 3.2.2, the second bugfix release of branch 3.2 of CheetahTemplate3. What's new in CheetahTemplate3 ============================== Contributors for this release are Pierre-Yves, Dan Vinakovsky, Nicolai Grodzitski. Minor features: - Replaced outdated and insecure ``mktemp`` with ``mkstemp``. Bug fixes: - Fixed bugs in ``TemplateCmdLineIface.py``: read binary pickles from stdin and files. Tests: - Use ``cgi.escape()`` for Python 2, ``html.escape()`` for Python 3. - Created tests for ``TemplateCmdLineIface``. 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: http://cheetahtemplate.org/ Development: https://github.com/CheetahTemplate3 Download: https://pypi.org/project/Cheetah3/3.2.2 News and changes: http://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> Oleg. -- Oleg Broytman https://phdru.name/ phd@phdru.name Programmers don't die, they just GOSUB without RETURN.
participants (1)
-
Oleg Broytman