Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Oleg Broytman Newsgroups: comp.lang.python.announce Subject: Cheetah3 3.2.6.post1 Date: Mon, 22 Feb 2021 12:17:11 +0100 Lines: 86 Approved: python-announce-list@python.org Message-ID: <20210222111711.GA20801@phdru.name> Reply-To: python-list@python.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.uni-berlin.de l2ucxbVAfIWgWM+pmKz9ewz8cYsNNDBWBZNEZOtODnng== Authentication-Results: mail.python.org; dkim=none reason="no signature"; dkim-adsp=unknown (unprotected policy); dkim-atps=neutral X-Spam-Status: OK 0.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'url-ip:140.82.121/24': 0.03; 'url-ip:140.82/16': 0.03; 'improvement': 0.05; 'library.': 0.05; 'tests': 0.05; 'template': 0.07; 'python.': 0.07; '2.7': 0.09; '3.2': 0.09; 'fork': 0.09; 'to:addr:python-announce-list': 0.09; 'url-ip:151.101.0.223/32': 0.09; 'url- ip:151.101.128.223/32': 0.09; 'url-ip:151.101.192.223/32': 0.09; 'url-ip:151.101.64.223/32': 0.09; 'url-ip:140/8': 0.12; 'import': 0.14; 'url:github': 0.15; 'python': 0.15; '$person': 0.16; '3.4': 0.16; '3.5.': 0.16; '3.9': 0.16; '=======': 0.16; 'changes:': 0.16; 'compiled': 0.16; 'module,': 0.16; 'practically': 0.16; 'refactor': 0.16; 'refactoring': 0.16; 'required.': 0.16; 'travis': 0.16; 'url-ip:151.101.1.69/32': 0.16; 'url- ip:151.101.129.69/32': 0.16; 'url-ip:151.101.193.69/32': 0.16; 'url-ip:151.101.65.69/32': 0.16; 'url:project': 0.16; 'url:pypi': 0.16; 'url:questions': 0.16; 'url:stackoverflow': 0.16; 'victor': 0.16; 'announce': 0.16; 'version': 0.21; 'to:addr:python-list': 0.22; 'url-ip:188.166/16': 0.23; "what's": 0.23; 'run': 0.25; 'thanks!': 0.26; 'binary': 0.27; 'programmers': 0.27; 'url- ip:188/8': 0.29; 'there': 0.31; 'header:User-Agent:1': 0.31; 'code,': 0.31; 'methods': 0.32; 'received:188.166': 0.32; 'andrew': 0.33; 'skip:= 30': 0.33; "i'm": 0.33; 'unless': 0.33; 'changes': 0.34; 'release': 0.35; "it's": 0.37; 'source': 0.37; "that's": 0.37; 'hello!': 0.38; 'example': 0.38; 'where': 0.39; 'your': 0.65; 'url:name': 0.65; 'free': 0.67; 'pleased': 0.68; 'site:': 0.70; 'templates': 0.70; 'news': 0.70; 'below': 0.70; 'upgrade': 0.71; '1st': 0.72; 'inherit': 0.84; 'wheels': 0.84; 'gonna': 0.91; 'return.': 0.91; 'url:news': 0.93 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, Python Mailing List X-Skip-DKIM-Sig: mailing list User-Agent: Mutt/1.10.1 (2018-07-13) X-MailFrom: phd@phdru.name X-Mailman-Rule-Hits: emergency X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved Message-ID-Hash: F3MQYGX53X6ISNUBKBGEJDTS6GOLRIM5 X-Message-ID-Hash: F3MQYGX53X6ISNUBKBGEJDTS6GOLRIM5 X-Mailman-Approved-At: Mon, 22 Feb 2021 09:35:33 -0500 X-Mailman-Version: 3.3.4b1 Precedence: list List-Id: Announcement-only list for the Python programming language Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Xref: csiph.com comp.lang.python.announce:3589 Hello! I'm pleased to announce version 3.2.6.post1, the 1st post-release for release 3.2.6 of branch 3.2 of CheetahTemplate3. What's new in CheetahTemplate3 ============================== Improvement and refactoring in CI and tests with ``tox``. There were no changes in the main code, there is no need to upgrade unless you gonna run tests. The contributors for this release are Andrew J. Hesford and Victor Stinner. Many thanks! This is the first release that provide binary wheels for Python 3.9. Tests: - Add Python 3.9 to ``tox.ini``. - Refactor ``tox.ini``. CI: - Run tests with Python 3.9 at Travis and AppVeyor. - Run tests for Python 3.4 with ``tox`` under Python 3.5. 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.post1 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'}] How are you feeling?
    #for $person in $people
  • $person['name'] is $person['mood']
  • #end for
Oleg. -- Oleg Broytman https://phdru.name/ phd@phdru.name Programmers don't die, they just GOSUB without RETURN.