---
title: "haml 7.0.0 Breaking Changes on RubyGems | Since.dev"
description: "What each haml release removed, renamed or changed: 52 breaking changes in 5 versions on RubyGems, each with its source."
canonical_url: https://since.dev/packages/gem/haml
last_updated: 2026-12-04
---

# 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

Latest version `7.5.2`. [Source repository](https://github.com/haml/haml)

Its 7.0.0 release requires [Ruby 3.2](https://since.dev/calendar/ruby/3.2.md) or later. [Ruby end of life dates](https://since.dev/calendar/ruby.md).

- From [6.0.0](#v-6-0-0) to [7.0.0](#v-7-0-0): 2 breaking changes in 1 version.
- From [4.0.0](#v-4-0-0) to [7.0.0](#v-7-0-0): 40 breaking changes in 4 versions.

## haml 7.0.0 breaking changes

haml 7.0.0, released October 28, 2025: 2 breaking changes.

- **Behavior changed**  

The gem now requires Ruby 3.2, so older Ruby versions can no longer run this release. [github.com](https://github.com/haml/haml/releases/tag/v7.0.0)
- **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](https://github.com/haml/haml/releases/tag/v7.0.0)

## haml 6.0.0 breaking changes

haml 6.0.0, released September 21, 2022: 25 breaking changes.

- **Removed**  

Legacy Rails integration is removed in Haml 6, so Rails code relying on it must be changed. [github.com](https://github.com/haml/haml/releases/tag/v6.0.0)
- **Removed** `block_is_haml?`  

This Rails helper is removed in Haml 6. [github.com](https://github.com/haml/haml/releases/tag/v6.0.0)
- **Removed** `capture_haml`  

This Tilt helper is removed in Haml 6. [github.com](https://github.com/haml/haml/releases/tag/v6.0.0)
- **Removed** `escape_once`  

This Tilt helper is removed in Haml 6. [github.com](https://github.com/haml/haml/releases/tag/v6.0.0)
- **Removed** `find_and_preserve`  

This Tilt helper is removed in Haml 6. [github.com](https://github.com/haml/haml/releases/tag/v6.0.0)
- **Removed** `flatten`  

This Rails helper is removed in Haml 6. [github.com](https://github.com/haml/haml/releases/tag/v6.0.0)
- **Removed** `haml_concat`  

This Rails helper is removed in Haml 6. [github.com](https://github.com/haml/haml/releases/tag/v6.0.0)
- **Removed** `haml_indent`  

This Rails helper is removed in Haml 6. [github.com](https://github.com/haml/haml/releases/tag/v6.0.0)
- **Removed** `haml_tag`  

This Rails helper is removed in Haml 6. [github.com](https://github.com/haml/haml/releases/tag/v6.0.0)
- **Removed** `haml_tag_if`  

This Rails helper is removed in Haml 6. [github.com](https://github.com/haml/haml/releases/tag/v6.0.0)

And 15 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## haml 6.0.0.beta.1 breaking changes

haml 6.0.0.beta.1, released September 21, 2022: 1 breaking change.

- **Removed**  

All Haml helpers except preserve are removed, and the rest of the implementation is replaced. Test your application before upgrading. [github.com](https://github.com/haml/haml/releases/tag/v6.0.0.beta.1)

## haml 5.0.0 breaking changes

haml 5.0.0, released April 27, 2017: 12 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](https://github.com/haml/haml/blob/v5.0.0/CHANGELOG.md)
- **Removed**  

Rails 3 is no longer supported by Haml 5.0.0, so Rails 3 apps must stay on Haml 4. [github.com](https://github.com/haml/haml/blob/v5.0.0/CHANGELOG.md)
- **Removed** `Haml.Compiler`  

Some methods in Haml::Compiler are migrated to Haml::TempleEngine, so code calling them must switch classes. [github.com](https://github.com/haml/haml/blob/v5.0.0/CHANGELOG.md)
- **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](https://github.com/haml/haml/blob/v5.0.0/CHANGELOG.md)
- **Behavior changed**  

The 'data' attribute is no longer treated specially when merging attribute hashes. [github.com](https://github.com/haml/haml/blob/v5.0.0/CHANGELOG.md)
- **Behavior changed**  

Newlines are no longer preserved in attribute values, so rendered output may differ. [github.com](https://github.com/haml/haml/blob/v5.0.0/CHANGELOG.md)
- **Behavior changed**  

Ruby script interpolated in filters is escaped, so output may differ for templates that relied on raw output. [github.com](https://github.com/haml/haml/blob/v5.0.0/CHANGELOG.md)
- **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](https://github.com/haml/haml/blob/v5.0.0/CHANGELOG.md)
- **Behavior changed** `ActionView.OutputBuffer`  

Unexpected exceptions raised while initializing ActionView::OutputBuffer are now raised instead of ignored. [github.com](https://github.com/haml/haml/blob/v5.0.0/CHANGELOG.md)
- **Behavior changed** `escape_attrs`  

Dynamic quotes support is dropped and escape_attrs always escapes single quotes, with escaped results slightly changed. [github.com](https://github.com/haml/haml/blob/v5.0.0/CHANGELOG.md)

And 2 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## haml 4.0.0 breaking changes

haml 4.0.0, released February 13, 2013: 12 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](https://github.com/haml/haml/blob/4.0.0/CHANGELOG.md)
- **Removed** `html2haml`  

HTML2Haml now ships as the separate html2haml gem, so code using it from haml must install and require that gem. [github.com](https://github.com/haml/haml/blob/4.0.0/CHANGELOG.md)
- **Behavior changed**  

Double quotes and apostrophes in attributes are now written as numeric character references instead of HTML entities. [github.com](https://github.com/haml/haml/blob/4.0.0/CHANGELOG.md)
- **Behavior changed**  

Versioning now follows semantic versioning, so breaking changes are signaled by major versions. [github.com](https://github.com/haml/haml/blob/4.0.0/CHANGELOG.md)
- **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](https://github.com/haml/haml/blob/4.0.0/CHANGELOG.md)
- **Behavior changed** `coffee filter`  

Output of the :coffee filter is wrapped in a script tag, which changes rendered markup. [github.com](https://github.com/haml/haml/blob/4.0.0/CHANGELOG.md)
- **Behavior changed** `data attribute hashes`  

Nested data hashes now render flattened attribute names such as data-c-d, changing output. [github.com](https://github.com/haml/haml/blob/4.0.0/CHANGELOG.md)
- **Behavior changed** `Haml.Options`  

Internal engine classes were refactored out of the Engine module, which can affect code that relied on them. [github.com](https://github.com/haml/haml/blob/4.0.0/CHANGELOG.md)
- **Behavior changed** `list_of`  

The list_of helper now accepts an extra argument rendered into list item attributes. [github.com](https://github.com/haml/haml/blob/4.0.0/CHANGELOG.md)
- **Behavior changed** `sass filter`  

Output of the :sass filter is wrapped in a script tag, which changes rendered markup. [github.com](https://github.com/haml/haml/blob/4.0.0/CHANGELOG.md)

And 2 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#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.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
