Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python.announce > #2778 > unrolled thread

Cheetah 3.0.1

Started byOleg Broytman <phd@phdru.name>
First post2018-02-27 22:20 +0100
Last post2018-02-27 22:20 +0100
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python.announce

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Cheetah 3.0.1 Oleg Broytman <phd@phdru.name> - 2018-02-27 22:20 +0100

#2778 — Cheetah 3.0.1

FromOleg Broytman <phd@phdru.name>
Date2018-02-27 22:20 +0100
SubjectCheetah 3.0.1
Message-ID<mailman.118.1519823106.2835.python-announce-list@python.org>
Hello!

I'm pleased to announce version 3.0.1, the first bugfix release of branch
3.0 of CheetahTemplate3.


What's new in CheetahTemplate3
==============================

Bug fixes:

  - Fix a minor bug in Compiler.


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.3+ is required.


Where is CheetahTemplate3
=========================

Site:
http://cheetahtemplate.org/

Development:
https://github.com/CheetahTemplate3

Download:
https://pypi.python.org/pypi/Cheetah3/3.0.1

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            http://phdru.name/            phd@phdru.name
           Programmers don't die, they just GOSUB without RETURN.

[toc] | [standalone]


Back to top | Article view | comp.lang.python.announce


csiph-web