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


Groups > comp.lang.python.announce > #2784

Cheetah 3.1.0

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From Oleg Broytman <phd@phdru.name>
Newsgroups comp.lang.python.announce
Subject Cheetah 3.1.0
Date Sat, 3 Mar 2018 19:54:49 +0100
Lines 84
Approved python-announce-list@python.org
Message-ID <mailman.294.1520341410.2835.python-announce-list@python.org> (permalink)
References <20180303185449.bqg3pxk56ahu6lbl@phdru.name>
Mime-Version 1.0
Content-Type text/plain; charset=us-ascii
X-Trace news.uni-berlin.de 6RBQ75gtgRg/bQGoTzjfKAVHTIvL3LcmhhN63Sog0CdA==
Return-Path <phd@phdru.name>
X-Original-To python-announce-list@python.org
Delivered-To python-announce-list@mail.python.org
X-Spam-Status OK 0.001
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'url:pypi': 0.03; 'pypy': 0.05; 'cache': 0.07; 'cleanup': 0.07; 'url-ip:192.30.253.112/32': 0.07; 'url-ip:192.30.253.113/32': 0.07; 'url-ip:192.30.253/24': 0.07; 'url:github': 0.07; 'contributors': 0.09; 'docs.': 0.09; 'practically': 0.09; 'rename': 0.09; 'template': 0.12; 'tests': 0.12; 'python.': 0.13; '2.7': 0.13; 'url-ip:192.30/16': 0.13; 'python': 0.15; 'email addr:phdru.name': 0.16; 'email name:phd': 0.16; 'header:X-Face:1': 0.16; 'pypy.': 0.16; 'travis': 0.16; 'url:tagged': 0.16; 'hello!': 0.20; 'to:2**1': 0.23; 'fix': 0.24; 'import': 0.24; 'header:User-Agent:1': 0.25; 'pip': 0.25; 'url- ip:192.30.252.153/32': 0.25; 'url-ip:192.30.252/24': 0.25; 'url- ip:151.101.0.223/32': 0.26; 'url-ip:151.101.128.223/32': 0.26; 'url-ip:151.101.192.223/32': 0.26; 'url-ip:151.101.64.223/32': 0.26; 'url-ip:151.101.0/24': 0.26; 'url-ip:151.101.128/24': 0.26; 'url-ip:151.101.192/24': 0.26; 'url-ip:151.101.64/24': 0.26; 'code,': 0.28; 'announce': 0.31; 'programmers': 0.31; 'library.': 0.31; 'module,': 0.31; 'stable': 0.31; 'run': 0.32; '3.1': 0.32; 'fork': 0.32; 'skip:= 20': 0.32; "i'm": 0.33; 'define': 0.33; 'required.': 0.34; 'code': 0.34; 'url-ip:151.101/16': 0.34; 'url- ip:151/8': 0.34; 'source': 0.35; 'open': 0.35; 'url- ip:188.166/16': 0.35; 'branch': 0.37; 'style': 0.37; 'url- ip:192/8': 0.37; 'charset:us-ascii': 0.38; 'example': 0.38; 'url- ip:188/8': 0.38; 'url:python': 0.39; 'url:org': 0.39; 'templates': 0.40; 'your': 0.60; 'engine.': 0.61; 'features:': 0.61; 'news': 0.62; 'free': 0.62; 'sfxlen:3': 0.62; 'url:0': 0.63; 'directory': 0.64; 'received:188': 0.67; 'skip:= 30': 0.67; 'url- ip:151.101.1.69/32': 0.67; 'url-ip:151.101.129.69/32': 0.67; 'url- ip:151.101.193.69/32': 0.67; 'url-ip:151.101.65.69/32': 0.67; 'url:questions': 0.67; 'site:': 0.71; 'url:stackoverflow': 0.79; 'inherit': 0.84; 'received:188.166': 0.95
Content-Disposition inline
X-Attribution phd
X-Face "4chVP^f8; 3Bi>x"ic0%DuP(ZLyn:; kzQ1njs]5,GRZG<{<\~`|Shxi7|)d|8uO~HFRfyym {[xs@OYG]2Q]0#}0sjJp`1^1+B6]A2+{9fW=S<O7^"hul]^|AGtiI7SkYF-2VD?UH*h_!zuCIf+^F7 c0x8?W,UfhCAx^YY#1ALhvG\2yG}LW:)zw#1;Yajq"hK~S
X-Operating-System Debian GNU/Linux
X-Url http://phdru.name/
Mail-Followup-To Oleg Broytman <phd@phdru.name>, Python Mailing List <python-list@python.org>
X-Skip-DKIM-Sig mailing list
User-Agent NeoMutt/20170113 (1.7.2)
X-Mailman-Approved-At Tue, 06 Mar 2018 08:03:29 -0500
X-BeenThere python-announce-list@python.org
X-Mailman-Version 2.1.26
Precedence list
List-Id Announcement-only list for the Python programming language <python-announce-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-announce-list>, <mailto:python-announce-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-announce-list/>
List-Post <mailto:python-announce-list@python.org>
List-Help <mailto:python-announce-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-announce-list>, <mailto:python-announce-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID <20180303185449.bqg3pxk56ahu6lbl@phdru.name>
Xref csiph.com comp.lang.python.announce:2784

Show key headers only | View raw


Hello!

I'm pleased to announce version 3.1.0, the first stable release of branch
3.1 of CheetahTemplate3.


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

Contributors for this release is Mathias Stearn.

Features:

  - Fix Cheetah to work with PyPy. Pull request by Mathias Stearn.

Minor features:

  - Code cleanup: fix code style to satisfy flake8 linter.

Documentation:

  - Rename www directory to docs.

Tests:

  - Run pypy tests at AppVeyor.
  - Use remove-old-files.py from ppu to cleanup pip cache
    at Travis and AppVeyor.


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.1.0

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.

Back to comp.lang.python.announce | Previous | Next | Find similar | Unroll thread


Thread

Cheetah 3.1.0 Oleg Broytman <phd@phdru.name> - 2018-03-03 19:54 +0100

csiph-web