bridgetown-haml 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/bridgetown-haml/haml_templates.rb +6 -1
- data/lib/bridgetown-haml/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a7729db7acb68d239adec06a3caa01b0d30dab58eefe13b435f8f3bf06b6ccc2
|
4
|
+
data.tar.gz: b1ea37db26bd78fcc9034ae559d9da57256375ae975b17e12710dbea3f86dd7e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 222daeeef93f781e17ec33b2b3101bb9793cfc61314fbe579d08531b81bcd2d0b769447155c4d4d5cef9f62f363954984b28f32c5d299ae4e0f3839343a8bf22
|
7
|
+
data.tar.gz: 2266504a415a2c5a8f4231260efb582b096786316c7905d4577796abfc6fe57873b7bb46b335608d9cc97052bc7ad983a50526b14d6f223ef9fcdca4a11ec57a
|
data/CHANGELOG.md
CHANGED
@@ -19,6 +19,7 @@ module Bridgetown
|
|
19
19
|
|
20
20
|
module Converters
|
21
21
|
class HamlTemplates < Converter
|
22
|
+
priority :highest
|
22
23
|
input :haml
|
23
24
|
|
24
25
|
# Logic to do the Haml content conversion.
|
@@ -29,6 +30,8 @@ module Bridgetown
|
|
29
30
|
#
|
30
31
|
# @return [String] The converted content.
|
31
32
|
def convert(content, convertible)
|
33
|
+
return content if convertible.data[:template_engine] != "haml"
|
34
|
+
|
32
35
|
haml_view = Bridgetown::HamlView.new(convertible)
|
33
36
|
|
34
37
|
haml_renderer = Tilt::HamlTemplate.new(convertible.relative_path) { content }
|
@@ -45,7 +48,9 @@ module Bridgetown
|
|
45
48
|
def matches(ext, convertible)
|
46
49
|
return true if convertible.data[:template_engine] == "haml"
|
47
50
|
|
48
|
-
super(ext)
|
51
|
+
super(ext).tap do |ext_matches|
|
52
|
+
convertible.data[:template_engine] = "haml" if ext_matches
|
53
|
+
end
|
49
54
|
end
|
50
55
|
|
51
56
|
def output_ext(ext)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bridgetown-haml
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bridgetown Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-11-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bridgetown
|