bridgetown-slim 1.1.0 → 1.1.1
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/CHANGELOG.md +4 -0
- data/lib/bridgetown-slim/slim_templates.rb +6 -1
- data/lib/bridgetown-slim/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1f8638de829dfdc92c77b8746962f2600cf04086d8e0abb88df294bd1a47c3d5
|
|
4
|
+
data.tar.gz: 6d51af619b47858f5d27826b10e337a6e883decbf2a096eb6a132ffa95dd2608
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8eb1adb589b3e063ca7b25fdfa4f731d0abd060abc8eb9989ebdfe0f7c2fc91da7a5beddec6fda97a3dc5225ab2cc7441c3a0149cbc9072a2b808483ca9d4eb7
|
|
7
|
+
data.tar.gz: 4705943832956e1cf2360ad3e36ba55372c3ae75710b68a5560f16652b365eb4adc82e9c3aad9b617e8c844d66a2720574b24cd2e8aaef5767f1a14e2e6ba70d
|
data/CHANGELOG.md
CHANGED
|
@@ -19,6 +19,7 @@ module Bridgetown
|
|
|
19
19
|
|
|
20
20
|
module Converters
|
|
21
21
|
class SlimTemplates < Converter
|
|
22
|
+
priority :highest
|
|
22
23
|
input :slim
|
|
23
24
|
|
|
24
25
|
# Logic to do the Slim 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] != "slim"
|
|
34
|
+
|
|
32
35
|
slim_view = Bridgetown::SlimView.new(convertible)
|
|
33
36
|
|
|
34
37
|
slim_renderer = Slim::Template.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] == "slim"
|
|
47
50
|
|
|
48
|
-
super(ext)
|
|
51
|
+
super(ext).tap do |ext_matches|
|
|
52
|
+
convertible.data[:template_engine] = "slim" 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-slim
|
|
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
|
|
@@ -151,7 +151,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
151
151
|
- !ruby/object:Gem::Version
|
|
152
152
|
version: '0'
|
|
153
153
|
requirements: []
|
|
154
|
-
rubygems_version: 3.1.
|
|
154
|
+
rubygems_version: 3.1.2
|
|
155
155
|
signing_key:
|
|
156
156
|
specification_version: 4
|
|
157
157
|
summary: A Bridgetown plugin which provides support for Slim templates.
|