jekyll-template 0.16.0 → 0.17.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/jekyll/template.rb +9 -2
- data/lib/jekyll/template/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 24b0844ed4b74d2b03fc171c6331d7ddf8bee8a2
|
4
|
+
data.tar.gz: c70da784a83f7e143482c1da7d7cf7cd11d0f5e2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bc44f9d82540ea8391c5bae3c0c65435b357d9e0b7b8bab334d2ba2ec284a25149a23b7ec14c383d1d83cbd588212735ae3a4fab759c2e7f5489002ab4a975eb
|
7
|
+
data.tar.gz: 8f38cabf78922e11399d4adc59bf2d8a5c00c77e261468c3392187d7ce7ba334ae0617be4a84e0222402db42204c0ea89c8769e1e8a8d3eded699c2317f98329
|
data/lib/jekyll/template.rb
CHANGED
@@ -72,8 +72,15 @@ module Jekyll
|
|
72
72
|
# This allows for @attributes to be used within the template as
|
73
73
|
# {{ template.atttribute_name }}
|
74
74
|
if @attributes
|
75
|
-
@
|
76
|
-
|
75
|
+
@attributes.each do |key, value|
|
76
|
+
val = context.evaluate(value)
|
77
|
+
context["template"][key] = val
|
78
|
+
|
79
|
+
# Adjust sanitize if parse: html
|
80
|
+
if (key == "parse") && (val == "html")
|
81
|
+
@sanitize = true
|
82
|
+
end
|
83
|
+
end
|
77
84
|
end
|
78
85
|
|
79
86
|
context["template"]["content"] = sanitize(strip_front_matter(content))
|