jekyll-template 0.3.0 → 0.3.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cbaf9542ef68675be688856585381ee273716af0
4
- data.tar.gz: 3cb196191b5eef544a7e2d714736ba4d8455f6b2
3
+ metadata.gz: 9c83b07e7104932ca6e2a5093facc8d150b5b55d
4
+ data.tar.gz: 0e415787d529e6dacaac7c03635dbedd1d4edfc4
5
5
  SHA512:
6
- metadata.gz: 6361f538145c5f0d03fd4778b861042355e95b63a737943e44ccba4a43dc1c0e83a0de7695a85afa05316b669526fb8dc9eddb5dec728a99e76359db816e76e5
7
- data.tar.gz: 0c82dc7b6d99d39aa22ba787a8f90c5364bda759917cdbd6e9c50c59e36c08a0751c2ae1f10582f44df2747dafc9036363ac72077c1e93df6aaf08f600861197
6
+ metadata.gz: c726ebdb50b739144e0745283fd5b1fd9f5c35aeb0e485ee1af5db05bd27b89461788075fa8d2ead4c0d0e937d6edcaf2cca31ade66fd299a197d3ea0ee4ac7d
7
+ data.tar.gz: c8da0cea43279abdb46cde7ed22b26e30ad05f1250dd29ddc0146e69b72659428df484dd18b1a0680b49e963323f27ff01539225125a30681af9d3261e542307
data/README.md CHANGED
@@ -165,3 +165,10 @@ More documentation coming soon!
165
165
  I am **not** a Ruby developer. (My background is mostly with Javascript). I wrote this plugin based on experimentation and combing through [Jekyll's](https://github.com/jekyll/jekyll) and [Liquid's](https://github.com/Shopify/liquid) source code + documentation. I'm sure there's probably code in there somewhere that's offensive to Ruby devs.
166
166
 
167
167
  We've been using `{% template %}` for many months now on the [Help Scout website](https://www.helpscout.net/), and it's been working great! We haven't noticed any slowdowns in build times (and we use **a lot** of templates).
168
+
169
+
170
+ ---
171
+
172
+
173
+ ## Thanks ❤️
174
+ Many thanks to [@alisdair](https://github.com/alisdair) for his help with code review and testing!
@@ -54,7 +54,9 @@ module Jekyll
54
54
  content = super
55
55
  # Remove leading whitespace
56
56
  # content = content.lstrip
57
- compressor = HtmlCompressor::Compressor.new
57
+ compressor = HtmlCompressor::Compressor.new({
58
+ :remove_comments => false
59
+ })
58
60
  site = context.registers[:site]
59
61
  template = load_template(context)
60
62
 
@@ -173,7 +175,8 @@ module Jekyll
173
175
  def parse_front_matter(content)
174
176
  # Strip leading white-spaces
175
177
  compressor = HtmlCompressor::Compressor.new({
176
- :preserve_line_breaks => true
178
+ :preserve_line_breaks => true,
179
+ :remove_comments => false
177
180
  })
178
181
  content = unindent(content)
179
182
 
@@ -1,5 +1,5 @@
1
1
  module Jekyll
2
2
  module Template
3
- VERSION = "0.3.0"
3
+ VERSION = "0.3.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-template
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - ItsJonQ
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-01-03 00:00:00.000000000 Z
11
+ date: 2017-01-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll