diff --git a/CHANGELOG.md b/CHANGELOG.md index 235bf0b4..61b9db38 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Haml Changelog +## 5.2.1 + +Released on November 30, 2020 +([diff](https://github.com/haml/haml/compare/v5.2.0...v5.2.1)). + +* Add in improved "multiline" support for attributes [#1043](https://github.com/haml/haml/issues/1043) + ## 5.2 Released on September 28, 2020 diff --git a/REFERENCE.md b/REFERENCE.md index 176a73f5..6c851e1f 100644 --- a/REFERENCE.md +++ b/REFERENCE.md @@ -228,15 +228,19 @@ is compiled to: Attribute hashes can also be stretched out over multiple lines to accommodate -many attributes. However, newlines may only be placed immediately after commas. -For example: +many attributes. - %script{:type => "text/javascript", - :src => "javascripts/script_#{2 + 7}"} + %script{ + "type": text/javascript", + "src": javascripts/script_#{2 + 7}", + "data": { + "controller": "reporter", + }, + } is compiled to: - + #### `:class` and `:id` Attributes {#class-and-id-attributes} diff --git a/lib/haml/version.rb b/lib/haml/version.rb index ce66e599..5edcbff0 100644 --- a/lib/haml/version.rb +++ b/lib/haml/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Haml - VERSION = "5.2.0" + VERSION = "5.2.1" end