haml 6.3.1 → 6.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/test.yml +1 -1
- data/CHANGELOG.md +8 -0
- data/REFERENCE.md +0 -7
- data/lib/haml/attribute_builder.rb +1 -1
- data/lib/haml/attribute_compiler.rb +1 -1
- data/lib/haml/filters/plain.rb +1 -1
- data/lib/haml/filters/ruby.rb +1 -1
- data/lib/haml/parser.rb +1 -1
- data/lib/haml/rails_template.rb +2 -2
- data/lib/haml/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 313ffec5cc79d2b238173fde9769ac60d26b54bf15d3deda68adc84d0849620b
|
|
4
|
+
data.tar.gz: 143e9115612a2555a4ce34c817745e330548a7eaedf98bc819ead44b2156f8ad
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 117f3811b514f8abd4142cdc8022e282e5a5434c5c0f6904e7eaff7655f58894e3486c999282f0140b6011016b52b139036071792c3ba33494de73342d512d77
|
|
7
|
+
data.tar.gz: 99e76cc2438c8ba70aaf39b3ccc0df9b610e3ac06de35b8865c2f2ce5aa692f9642791b863602eef5e382d60224fdb44a143074c11f072ccad7556ae1461b261
|
data/.github/workflows/test.yml
CHANGED
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Haml Changelog
|
|
2
2
|
|
|
3
|
+
## 6.4.0
|
|
4
|
+
|
|
5
|
+
* Authorize characters in attribute name for vuejs https://github.com/haml/haml/pull/1172
|
|
6
|
+
* Compile new-style attributes statically https://github.com/haml/haml/pull/1165
|
|
7
|
+
* Remove newlines from template annotation comments https://github.com/haml/haml/pull/1186
|
|
8
|
+
* Fix line numbers within a :ruby filter https://github.com/haml/haml/pull/1166
|
|
9
|
+
* Fix .class + nested class array bug https://github.com/haml/haml/pull/1191
|
|
10
|
+
|
|
3
11
|
## 6.3.1
|
|
4
12
|
|
|
5
13
|
* Optimize string transformation using `String#tr` https://github.com/haml/haml/pull/1168
|
data/REFERENCE.md
CHANGED
|
@@ -360,13 +360,6 @@ will render as:
|
|
|
360
360
|
|
|
361
361
|
<a data-author-id='123' data-category='7' href='/posts'>Posts By Author</a>
|
|
362
362
|
|
|
363
|
-
Notice that the underscore in `author_id` was replaced with a hyphen. If you wish
|
|
364
|
-
to suppress this behavior, you can set Haml's
|
|
365
|
-
{Haml::Options#hyphenate_data_attrs `:hyphenate_data_attrs` option} to `false`,
|
|
366
|
-
and the output will be rendered as:
|
|
367
|
-
|
|
368
|
-
<a data-author_id='123' data-category='7' href='/posts'>Posts By Author</a>
|
|
369
|
-
|
|
370
363
|
This expansion of hashes is recursive – any value of the child hash that is
|
|
371
364
|
itself a hash will create an attribute for each entry, with the attribute name
|
|
372
365
|
prefixed with all ancestor keys. For example:
|
|
@@ -98,7 +98,7 @@ module Haml
|
|
|
98
98
|
def compile_boolean!(temple, key, values)
|
|
99
99
|
exp = literal_for(values.last)
|
|
100
100
|
|
|
101
|
-
if Temple::StaticAnalyzer.static?(exp)
|
|
101
|
+
if values.last.first == :static || Temple::StaticAnalyzer.static?(exp)
|
|
102
102
|
value = eval(exp)
|
|
103
103
|
case value
|
|
104
104
|
when true then temple << [:html, :attr, key, @format == :xhtml ? [:static, key] : [:multi]]
|
data/lib/haml/filters/plain.rb
CHANGED
data/lib/haml/filters/ruby.rb
CHANGED
data/lib/haml/parser.rb
CHANGED
data/lib/haml/rails_template.rb
CHANGED
|
@@ -40,8 +40,8 @@ module Haml
|
|
|
40
40
|
|
|
41
41
|
if ActionView::Base.try(:annotate_rendered_view_with_filenames) && template.format == :html
|
|
42
42
|
options = options.merge(
|
|
43
|
-
preamble: "<!-- BEGIN #{template.short_identifier}
|
|
44
|
-
postamble: "<!-- END #{template.short_identifier}
|
|
43
|
+
preamble: "<!-- BEGIN #{template.short_identifier} -->",
|
|
44
|
+
postamble: "<!-- END #{template.short_identifier} -->",
|
|
45
45
|
)
|
|
46
46
|
end
|
|
47
47
|
|
data/lib/haml/version.rb
CHANGED