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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c096e5fc9774d05776a63f7edcbe6b1dbd6befb8
4
- data.tar.gz: 537f48aa6647e7094cde578fe87ae9382ae35565
3
+ metadata.gz: 24b0844ed4b74d2b03fc171c6331d7ddf8bee8a2
4
+ data.tar.gz: c70da784a83f7e143482c1da7d7cf7cd11d0f5e2
5
5
  SHA512:
6
- metadata.gz: cc13346f93678b97352ce2b0ed1569da576faeef3e991762f616a7a144685312b02c6fc5248f9a5aa6e07ff22b0853f2eae5f4cc497312a6a91277e0a7897860
7
- data.tar.gz: 311648fa21b511ea2faf014479944f4a7262079fa0dcddd4d0f7b1f087748648d7f3cbef7c3c40707740f2100c8dea437d85a26ef79b669e4d1517fdf8bb7d01
6
+ metadata.gz: bc44f9d82540ea8391c5bae3c0c65435b357d9e0b7b8bab334d2ba2ec284a25149a23b7ec14c383d1d83cbd588212735ae3a4fab759c2e7f5489002ab4a975eb
7
+ data.tar.gz: 8f38cabf78922e11399d4adc59bf2d8a5c00c77e261468c3392187d7ce7ba334ae0617be4a84e0222402db42204c0ea89c8769e1e8a8d3eded699c2317f98329
@@ -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
- @sanitize = @attributes["parse"] && @attributes["parse"] == "html"
76
- context["template"].merge!(@attributes)
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))
@@ -1,5 +1,5 @@
1
1
  module Jekyll
2
2
  module Template
3
- VERSION = "0.16.0"
3
+ VERSION = "0.17.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-template
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.0
4
+ version: 0.17.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ItsJonQ