Haml v2.2.11 Release Notes

  • Tagged on GitHub.

    • ๐Ÿ›  Fixed a bug with XSS protection where HTML escaping would raise an error if passed a non-string value. Note that this doesn't affect any HTML escaping when XSS protection is disabled.

    • ๐Ÿ›  Fixed a bug in outer-whitespace nuking where whitespace-only Ruby strings blocked whitespace nuking beyond them.

    • ๐Ÿ‘‰ Use ensure to protect the resetting of the Haml output buffer against exceptions that are raised within the compiled Haml code.

    • ๐Ÿ›  Fix an error line-numbering bug that appeared if an error was thrown within loud script (=). This is not the best solution, as it disables a few optimizations, but it shouldn't have too much effect and the optimizations will hopefully be re-enabled in version 2.4.

    • ๐Ÿ”Œ Don't crash if the plugin skeleton is installed and rake gems:install is run.

    • ๐Ÿš… Don't use RAILS_ROOT directly. This no longer exists in Rails 3.0. Instead abstract this out as Haml::Util.rails_root. This changes makes Haml fully compatible with edge Rails as of this writing.