Cheetah is a template engine and code generation tool

Edit Package python-Cheetah3
http://cheetahtemplate.org/

Cheetah3 is a free (BSD-style) and open source template engine and code
generation tool.

It can be used standalone or combined with other tools and frameworks. Web
development is its principle use, but Cheetah is very flexible and is also being
used to generate C++ game code, Java, sql, form emails and even Python code.

It's a fork of the original CheetahTemplate library.

Refresh
Refresh
Source Files
Filename Size Changed
Cheetah3-3.2.1.tar.gz 0000952707 930 KB
python-Cheetah3.changes 0000002635 2.57 KB
python-Cheetah3.spec 0000002291 2.24 KB
Revision 4 (latest revision is 13)
Dominique Leuenberger's avatar Dominique Leuenberger (dimstar_suse) accepted request 687395 from Tomáš Chvátal's avatar Tomáš Chvátal (scarabeus_iv) (revision 4)
- Enable py2 as it supports python2
- Update to 3.2.1:
  * Changed LoadTemplate.loadTemplate{Module,Class}: the loaded module’s __name__ set to just the file name.
  * Use imp for Python 2, importlib for Python 3.
  * Fix a bug in LoadTemplate.loadTemplate{Module,Class}: raise ImportError if the template was not found.

- Update to 3.2.0:
  * Dropped support for Python 3.3.
  * Implement LoadTemplate.loadTemplate{Module,Class} to load templates from .py[co], .py or .tmpl.
  * CheetahDirOwner caches compiled template in the template directory.
  * CheetahDirOwner now silently ignores errors on compiled templates writing. To get tracebacks set CheetahDirOwner.debuglevel = 1.
  * CheetahDirOwner and DirOwner byte-compile compiled templates to .pyc/.pyo. Errors on writing are silently ignored.
  * Implement Compiler.__unicode__ under Python 2 and Compiler.__bytes__ under Python 3.
  * Fix a bug in Compiler.__str__: under Python 2 the method now always returns str; it encodes unicode to str using encoding from the compiled source. Under Python 3 the method decodes bytes to str.
- Execute tests
Comments 0
openSUSE Build Service is sponsored by