All Versions
92
Latest Version
Avg Release Cycle
101 days
Latest Release
1129 days ago

Changelog History
Page 6

  • v2.6.1 Changes

    November 30, 2011

    ๐Ÿ›  Bugfixes:

    • ๐Ÿ›  Decode HTML entities in expression interpolation strings. This fixes issue #74.

    • ๐Ÿ‘ Allow xml and xmlns attributes on TAL, I18N and METAL namespace elements. This fixes issue #73.

  • v2.6.0 Changes

    November 24, 2011

    ๐Ÿ”‹ 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.

  • v2.5.3 Changes

    October 23, 2011

    ๐Ÿ›  Bugfixes:

    • ๐Ÿ›  Fixed an issue where a nested macro slot definition would fail even though there existed a parent macro definition. This fixes issue #69.
  • v2.5.2 Changes

    October 12, 2011

    ๐Ÿ›  Bugfixes:

    • ๐Ÿ›  Fixed an issue where technically invalid input would result in a compiler error.

    ๐Ÿ”‹ Features:

    • The markup class now inherits from the unicode string type such that it's compatible with the string interface.
  • v2.5.1 Changes

    September 29, 2011

    ๐Ÿ›  Bugfixes:

    • The symbol names "convert", "decode" and "translate" are now no longer set as read-only compiler internals. This fixes issue #65.

    • ๐Ÿ›  Fixed an issue where a macro extension chain nested two levels (a template uses a macro that extends a macro) would lose the middle slot definitions if slots were defined nested.

    The compiler now throws an error if a nested slot definition is used outside a macro extension context.

  • v2.5.0 Changes

    September 23, 2011

    ๐Ÿ”‹ Features:

    • An expression type structure: is now available which wraps the expression result as structure such that it is not escaped on insertion, e.g.::

      ${structure: context.body}

    This also means that the structure keyword for tal:content and tal:replace now has an alternative spelling via the expression type structure:.

    • The string-based template constructor now accepts encoded input.
  • v2.4.6 Changes

    September 23, 2011

    ๐Ÿ›  Bugfixes:

    • The tal:on-error statement should catch all exceptions.

    • ๐Ÿ›  Fixed issue that would prevent escaping of interpolation expression values appearing in text.

  • v2.4.5 Changes

    September 21, 2011

    ๐Ÿ›  Bugfixes:

    • The tal:on-error handler should have a error variable defined that has the value of the exception thrown.

    • The tal:on-error statement is a substitution statement and should support the "text" and "structure" insertion methods.

  • v2.4.4 Changes

    September 15, 2011

    ๐Ÿ›  Bugfixes:

    • An encoding specified in the XML document preamble is now read and used to decode the template input to unicode. This fixes issue #55.

    • Encoded expression input on Python 3 is now correctly decoded. Previously, the string representation output would be included instead of an actually decoded string.

    • Expression result conversion steps are now correctly included in error handling such that the exception output points to the expression location.

  • v2.4.3 Changes

    September 13, 2011

    ๐Ÿ”‹ Features:

    • When an encoding is provided, pass the 'ignore' flag to avoid decoding issues with bad input.

    ๐Ÿ›  Bugfixes:

    • ๐Ÿ›  Fixed pypy compatibility issue (introduced in previous release).