All Versions
Latest Version
Avg Release Cycle
171 days
Latest Release
921 days ago

Changelog History
Page 7

  • v2.2.19 Changes

    Tagged on GitHub.

    • ๐Ÿ›  Fix a bug with the integration with Rails' XSS support. In particular, correctly override safe_concat.
  • v2.2.18 Changes

    Tagged on GitHub.

    • ๐Ÿ‘Œ Support the new XSS-protection API used in Rails 3.

    • ๐Ÿš… Use Rails.env rather than RAILS_ENV when running under Rails 3.0. Thanks to Duncan Grazier.

    • โž• Add a --unix-newlines flag to all executables for outputting Unix-style newlines on Windows.

    • ๐Ÿ›  Fix a couple bugs with the :erb filter: make sure error reporting uses the correct line numbers, and allow multi-line expressions.

    • ๐Ÿ›  Fix a parsing bug for HTML-style attributes including #.

  • v2.2.17 Changes

    Tagged on GitHub.

    • ๐Ÿ›  Fix compilation of HTML5 doctypes when using html2haml.

    • nil values for Sass options are now ignored, rather than raising errors.

  • v2.2.16 Changes

    Tagged on GitHub.

    • Abstract out references to ActionView::TemplateError, ActionView::TemplateHandler, etc. These have all been renamed to ActionView::Template::* in Rails 3.0.
  • v2.2.15 Changes

    Tagged on GitHub.

    • ๐Ÿ‘ Allow if statements with no content followed by else clauses. For example:

      • if foo
      • else bar
  • v2.2.14 Changes

    Tagged on GitHub.

    • โš  Don't print warnings when escaping attributes containing non-ASCII characters in Ruby 1.9.

    • ๐Ÿ“œ Don't crash when parsing an XHTML Strict doctype in html2haml.

    • ๐Ÿ‘Œ Support the HTML5 doctype in an XHTML document by using !!! 5 as the doctype declaration.

  • v2.2.13 Changes

    Tagged on GitHub.

    • Allow users to specify { :encoding => "ascii-8bit"} even for templates that include non-ASCII byte sequences. This makes Haml templates not crash when given non-ASCII input that's marked as having an ASCII encoding.

    • ๐Ÿ›  Fixed an incompatibility with Hpricot 0.8.2, which is used for html2haml.

  • v2.2.12 Changes

    Tagged on GitHub.

    There were no changes made to Haml between versions 2.2.11 and 2.2.12.

  • v2.2.11 Changes

    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.

  • v2.2.10 Changes

    Tagged on GitHub.

    • ๐Ÿ›  Fixed a bug where elements with dynamic attributes and no content would have too much whitespace between the opening and closing tag.

    • ๐Ÿ”„ Changed rails/init.rb away from loading init.rb and instead have it basically copy the content. This allows us to transfer the proper binding to Haml.init_rails.

    • ๐Ÿ‘‰ Make sure Haml only tries to enable XSS protection integration once all other plugins are loaded. This allows it to work properly when Haml is a gem and the rails_xss plugin is being used.

    • Mark the return value of Haml templates as HTML safe. This makes Haml partials work with Rails' XSS protection.