Chameleon v2.6.0 Release Notes

Release Date: 2011-11-24 // about 10 years ago
  • ๐Ÿ”‹ Features:

    • โž• Added support for implicit translation:

    The implicit_i18n_translate option enables implicit translation of text. The implicit_i18n_attributes enables implicit translation of attributes. The latter must be a set and for an attribute to be implicitly translated, its lowercase string value must be included in the set.

    • โž• Added option strict (enabled by default) which decides whether expressions are required to be valid at compile time. That is, if not set, an exception is only raised for an invalid expression at evaluation time.

    • ๐Ÿ‘ป An expression error now results in an exception only if the expression is attempted evaluated during a rendering.

    • Added a configuration option prepend_relative_search_path which decides whether the path relative to a file-based template is prepended to the load search path. The default is True.

    • โž• Added a configuration option search_path to the file-based template class, which adds additional paths to the template load instance bound to the load: expression. The option takes a string path or an iterable yielding string paths. The default value is the empty set.

    ๐Ÿ›  Bugfixes:

    • ๐Ÿ‘ป Exception instances now support pickle/unpickle.

    • An attributes in i18n:attributes no longer needs to match an existing or dynamic attribute in order to appear in the element. This fixes issue #66.