Haml v2.2.11 Release Notes
-
๐ 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 asHaml::Util.rails_root
. This changes makes Haml fully compatible with edge Rails as of this writing.