Haml v3.0.7 Release Notes
-
๐ 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).
- 0๏ธโฃ Default to the {file:HAML_REFERENCE.md#format-option