1
0
Fork 0
mirror of https://github.com/haml/haml.git synced 2022-11-09 12:33:31 -05:00

Preparing for 5.2.1 Release

This commit is contained in:
Hampton Catlin 2020-11-30 14:36:17 -05:00
parent 000b6657b5
commit 8a0f282ba6
3 changed files with 17 additions and 6 deletions

View file

@ -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

View file

@ -228,15 +228,19 @@ is compiled to:
<html xmlns='http://www.w3.org/1999/xhtml' xml:lang='en' lang='en'></html>
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:
<script src='javascripts/script_9' type='text/javascript'></script>
<script src='javascripts/script_9' type='text/javascript' data-controller='reporter'></script>
#### `:class` and `:id` Attributes {#class-and-id-attributes}

View file

@ -1,5 +1,5 @@
# frozen_string_literal: true
module Haml
VERSION = "5.2.0"
VERSION = "5.2.1"
end