Haml v3.0.7 Release Notes

  • Tagged on GitHub.

    ๐Ÿ‘ Encoding Support

    ๐Ÿ’… Haml 3.0.7 adds support for Ruby-style -# coding: comments for declaring the encoding of a template. ๐Ÿ‘€ For details see {file:HAML_REFERENCE.md#encodings the reference}.

    This also slightly changes the behavior of Haml when the {file:HAML_REFERENCE.md#encoding-option :encoding option} is not set. 0๏ธโƒฃ Rather than defaulting to "utf-8", 0๏ธโƒฃ it defaults to the encoding of the source document, and only falls back to "utf-8" if this encoding is "us-ascii".

    The haml executable also now takes an -E option for specifying encoding, ๐Ÿ’Ž which works the same way as Ruby's -E option.

    Other Changes

    • 0๏ธโƒฃ Default to the {file:HAML_REFERENCE.md#format-option :html5 format} when running under Rails 3, since it defaults to HTML5 as well.

    ๐Ÿ› Bug Fixes

    • When generating Haml for something like <span>foo</span>,, use = succeed rather than - succeed (which doesn't work).