Chameleon v2.7.0 Release Notes

Release Date: 2011-12-13 // over 12 years ago
  • ๐Ÿ”‹ Features:

    • The load: expression now derives from the string expression such that the ${...} operator can be used for expression interpolation.

    • The load: expression now accepts asset specs; these are resolved by the pkg_resources.resource_filename function::

      :

    An example from the test suite::

    chameleon:tests/inputs/hello_world.pt
    

    ๐Ÿ›  Bugfixes:

    • ๐ŸŒ If an attribute name for translation was not a valid Python identifier, the compiler would generate invalid code. This has been fixed, and the compiler now also throws an exception if an attribute specification contains a comma. (Note that the only valid separator character is the semicolon, when specifying attributes for translation via the i18n:translate statement). This addresses issue #76.