haml breaking changes
haml 7.0.0 (October 28, 2025) is its newest release with breaking changes, 2 of them. The first: haml 7.0.0 requires Ruby 3.2 or later. Every breaking API change we have recorded in haml on RubyGems: 52 breaking changes in 5 versions. Below, its 5 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 7.5.2. Source repository
Its 7.0.0 release requires Ruby 3.2 or later. Ruby end of life dates.
- From 6.0.0 to 7.0.0: 2 breaking changes in 1 version.
- From 4.0.0 to 7.0.0: 40 breaking changes in 4 versions.
haml 7.0.0 breaking changes
- Behavior changed
The gem now requires Ruby 3.2, so older Ruby versions can no longer run this release. github.com - Default changed
attr_quote
The default attr_quote is now a double quote instead of a single quote, so generated HTML attributes use double quotes. Set attr_quote to "'" to keep the old output. github.com
haml 6.0.0 breaking changes
- Removed
Legacy Rails integration is removed in Haml 6, so Rails code relying on it must be changed. github.com - Removed
block_is_haml?
This Rails helper is removed in Haml 6. github.com - Removed
capture_haml
This Tilt helper is removed in Haml 6. github.com - Removed
escape_once
This Tilt helper is removed in Haml 6. github.com - Removed
find_and_preserve
This Tilt helper is removed in Haml 6. github.com - Removed
flatten
This Rails helper is removed in Haml 6. github.com - Removed
haml_concat
This Rails helper is removed in Haml 6. github.com - Removed
haml_indent
This Rails helper is removed in Haml 6. github.com - Removed
haml_tag
This Rails helper is removed in Haml 6. github.com - Removed
haml_tag_if
This Rails helper is removed in Haml 6. github.com
And 15 more in this version. Sign up to see every change
haml 6.0.0.beta.1 breaking changes
- Removed
All Haml helpers except preserve are removed, and the rest of the implementation is replaced. Test your application before upgrading. github.com
haml 5.0.0 breaking changes
- Removed
Haml 5.0.0 requires Ruby 2.0.0 or above, so older Ruby versions can no longer run it. github.com - Removed
Rails 3 is no longer supported by Haml 5.0.0, so Rails 3 apps must stay on Haml 4. github.com - Removed
Haml.Compiler
Some methods in Haml::Compiler are migrated to Haml::TempleEngine, so code calling them must switch classes. github.com - Removed
Haml.Engine
The parser/compiler accessor is dropped from Haml::Engine; set options through Haml::Engine#initialize or Haml::Template.options instead. github.com - Behavior changed
The 'data' attribute is no longer treated specially when merging attribute hashes. github.com - Behavior changed
Newlines are no longer preserved in attribute values, so rendered output may differ. github.com - Behavior changed
Ruby script interpolated in filters is escaped, so output may differ for templates that relied on raw output. github.com - Behavior changed
The attribute merging fix can produce different output in some circumstances, so check templates that mix old-style attribute hashes with new-style hashes. github.com - Behavior changed
ActionView.OutputBuffer
Unexpected exceptions raised while initializing ActionView::OutputBuffer are now raised instead of ignored. github.com - Behavior changed
escape_attrs
Dynamic quotes support is dropped and escape_attrs always escapes single quotes, with escaped results slightly changed. github.com
And 2 more in this version. Sign up to see every change
haml 4.0.0 breaking changes
- Removed
Haml 4.0 supports only Rails 3 and above. Projects needing Rails 2 or Ruby 1.8.6 must stay on Haml 3.1.x. github.com - Removed
html2haml
HTML2Haml now ships as the separate html2haml gem, so code using it from haml must install and require that gem. github.com - Behavior changed
Double quotes and apostrophes in attributes are now written as numeric character references instead of HTML entities. github.com - Behavior changed
Versioning now follows semantic versioning, so breaking changes are signaled by major versions. github.com - Behavior changed
cdata
The :javascript and :css filters no longer add CDATA tags in html4 or html5. Set the cdata option to true to keep them. github.com - Behavior changed
coffee filter
Output of the :coffee filter is wrapped in a script tag, which changes rendered markup. github.com - Behavior changed
data attribute hashes
Nested data hashes now render flattened attribute names such as data-c-d, changing output. github.com - Behavior changed
Haml.Options
Internal engine classes were refactored out of the Engine module, which can affect code that relied on them. github.com - Behavior changed
list_of
The list_of helper now accepts an extra argument rendered into list item attributes. github.com - Behavior changed
sass filter
Output of the :sass filter is wrapped in a script tag, which changes rendered markup. github.com
And 2 more in this version. Sign up to see every change
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.