python-Chameleon

Edit Package python-Chameleon

Chameleon is an HTML/XML template engine for Python. It uses the *page templates* language.

You can use it in any Python web application with just about any version of Python (2.5 and up, including 3.x and pypy).

Refresh
Refresh
Source Files
Filename Size Changed
Chameleon-4.2.0.tar.gz 0000140486 137 KB
python-Chameleon.changes 0000020284 19.8 KB
python-Chameleon.spec 0000002129 2.08 KB
Revision 15 (latest revision is 19)
Ana Guerrero's avatar Ana Guerrero (anag+factory) accepted request 1114697 from Dirk Mueller's avatar Dirk Mueller (dirkmueller) (revision 15)
- update to 4.2.0:
  * An XML document provided as a string (i.e. decoded) now
    correctly has its content encoding parsed.
  * Boolean attributes are now automatically configured for
    templates in non-XML mode, presuming that we're being used
    to generate HTML.
  * This means that the same loading mechanism can be used for
    both XML-and HTML-based templates.
  * Boolean attributes (those configured using the optional
    `boolean_attributes` parameter) now work with $-expression
    interpolation.
  * Unlike content and regular attributes, a special check for a
    falsy value is now done for boolean attributes, such that
    boolean logic can be used for interpolation expressions
    (only a truthy value will include the attribute).
    This reverts a change in behavior introduced in 3.8.0.
  * Fix format spec applying for f-strings.
  * Drop support for Python 2.7, 3.5, 3.6.
  * Add support for set- and dict comprehensions
  * Remove the following functions resp. modules:
    ``.utils.text_()``
    ``.utils.unescape()``
    ``.compat``

  *  A RepeatDict no longer inherits from dict since it does not actually provide
  *  Added feature gate enable_comment_interpolation which controls whether
    Add option restricted_namespace which controls whether to
    restrict namespaces to those defined and used by the page
    Fixed attribute HTML entity escaping issue where an entity such
    Simplify exception tracking, reducing bytecode size
Comments 0
openSUSE Build Service is sponsored by