Chameleon v2.0-rc5 Release Notes

Release Date: 2011-03-07 // about 13 years ago
  • ๐Ÿ›  Bugfixes:

    • ๐Ÿ›  Fixed a number of issues concerning the escaping of attribute values:

    1) Static attribute values are now included as they appear in the source.

     This means that invalid attribute values such as ``"true &&
     false"`` are now left alone. It's not the job of the template
     engine to correct such markup, at least not in the default mode
     of operation.
    

    2) The string expression compiler no longer unescapes values. Instead, this is left to each expression compiler. Currently only the Python expression compiler unescapes its input.

    3) The dynamic escape code sequence now correctly only replaces ampersands that are part of an HTML escape format.

    Imports:

    • The page template classes and the loader class can now be imported directly from the chameleon module.

    ๐Ÿ”‹ Features:

    • If a custom template loader is not provided, relative paths are now resolved using os.abspath (i.e. to the current working directory).

    • Absolute paths are normalized using os.path.normpath and os.path.expanduser. This ensures that all paths are kept in their "canonical" form.