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 +4 -4
- data/README.md +7 -0
- data/lib/jekyll/template.rb +5 -2
- data/lib/jekyll/template/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9c83b07e7104932ca6e2a5093facc8d150b5b55d
|
|
4
|
+
data.tar.gz: 0e415787d529e6dacaac7c03635dbedd1d4edfc4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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!
|
data/lib/jekyll/template.rb
CHANGED
|
@@ -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
|
|
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.
|
|
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-
|
|
11
|
+
date: 2017-01-04 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: jekyll
|