Haml 4.0 has been released!
It’s finally here! I’m happy to announce that Haml 4.0 has been released to Rubygems and is ready for you to install right now.
This release includes many improvements, including SCSS, Less and Coffeescript filters; better HTML5 support; hyphenated data attributes; security, performance, and thread-safety fixes; and much, much more.
Now, I hate to sound like the fine print on a package of aspirin, but you must know that some of the changes in Haml 4.0 might break your application. Haml no longer supports Rails versions earlier than 3.0, nor does it support Ruby less than 1.8.7. The Sass filter now always outputs a <style> tag. Data attributes are now hyphenated, not underscored. The html2haml utility has been moved to the html2haml gem. The Textile and Maruku filters moved to the haml-contrib gem.
If you’re worried about breakage, please pin Haml to the 3.1 series using “~> 3.1” in your Gemfile or other gem version management code of your choice until you’ve had the chance to update. Haml 3.1 will be maintained for bug fixes indefinitely for those users who can’t or don’t want to upgrade to Haml 4.0.
The 4.0.0 gem’s SHA1 is:
On a brief personal note, I’d like to take a moment to thank a few of the many people who contributed to this release:
Nathan Weizenbaum for maintaining Haml for many years, contributing to the earliest work on this release, and trusting me as the new maintainer.
Matt Wildig for coming on board as committer and fearlessly tackling most of the hardest problems.
Nick Walsh for his beautiful redesign of the Haml website.
Hampton Catlin for creating Haml and always being available to provide feedback, support and encouragement.
Now, get out there, try out the new version and let us know what you think!