octopress-include-tag 1.0.3 → 1.1.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: b573bc4444a5091384735b96236abf828ffd2817
4
- data.tar.gz: c7c8e1f52c7962529af8294a37c3e238dd301bb7
3
+ metadata.gz: 9821934b09459815853e620013e8d93f90773608
4
+ data.tar.gz: 4d705dd23a9849851762f39bee4d495ffc0e73c8
5
5
  SHA512:
6
- metadata.gz: 0f893e5ea32e44dec42812d2f7f10a3fa0c3bd7b8e98ddfbb5d0528d9302b75e40b932f401f0df0b0cec04506e5ccd2a7f4ffbf104c1d4d9f2ed7e044de8b343
7
- data.tar.gz: 7793b6ca1b3ec04c860df1f651b20ab1d2385312bc9c1eb0b790a980765c7ded79b4f4118b0e01d54ba9b826bd4e2691446649245a6bb50fecf6ef44b20a5b22
6
+ metadata.gz: 71bd7880605c03b53c4bdd323a42bd6519a7ecdf39a158ce6fea0e86fe1a6940a6c05b26326da1342ef0c4d57467a3692be79ef82714cf4e261da5c7e4c78b6d
7
+ data.tar.gz: a28802c3db717b7c84600113d1f1af590de93d23a9f98ce85af2ae6a677863bba4e4d6d6497b3f43c36f42ce7bba5d730b1a64d05e24009a2f5ee70f90b0c933
@@ -1,6 +1,10 @@
1
1
  # Changelog
2
2
 
3
- ### 1.0.2 - 2015-01-11
3
+ ### 1.1.0 - 2015-04-26
4
+
5
+ - New: Access Octopress Ink plugin configuration from within an include with the {{ plugin.config_var }}.
6
+
7
+ ### 1.0.3 - 2015-01-11
4
8
 
5
9
  - Minor docs updates
6
10
 
@@ -42,6 +42,7 @@ module Octopress
42
42
  partial = Liquid::Template.parse(content)
43
43
  content = context.stack {
44
44
  context['include'] = include_tag.parse_params(context)
45
+ context['plugin'] = Octopress::Ink::Plugins.plugin(plugin).config(context['lang'])
45
46
  partial.render!(context)
46
47
  }.strip
47
48
 
@@ -1,7 +1,7 @@
1
1
  module Octopress
2
2
  module Tags
3
3
  module Include
4
- VERSION = "1.0.3"
4
+ VERSION = "1.1.0"
5
5
  end
6
6
  end
7
7
  end
File without changes
@@ -9,3 +9,6 @@ Yo Dawg, I heard you like includes. → Yo Dawg, I heard you like includes.
9
9
 
10
10
  ## Override plugin include
11
11
  Overrides plugin include → Overrides plugin include
12
+
13
+ ## Plugin config access
14
+ Config for test is: howdy y'all
@@ -0,0 +1 @@
1
+ test: howdy y'all
@@ -0,0 +1 @@
1
+ Config for test is: {{ plugin.test }}
@@ -11,3 +11,6 @@ Yo Dawg, I heard you like includes. → {% include test-plugin:greet.html greeti
11
11
 
12
12
  ## Override plugin include
13
13
  Overrides plugin include → {% include test-plugin:bar.html %}
14
+
15
+ ## Plugin config access
16
+ {% include test-plugin:config.html %}
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: octopress-include-tag
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Mathis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-11 00:00:00.000000000 Z
11
+ date: 2015-04-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: octopress-tag-helpers
@@ -115,7 +115,6 @@ executables: []
115
115
  extensions: []
116
116
  extra_rdoc_files: []
117
117
  files:
118
- - ".clash.yml"
119
118
  - ".gitignore"
120
119
  - ".travis.yml"
121
120
  - CHANGELOG.md
@@ -128,12 +127,15 @@ files:
128
127
  - octopress-include-tag.gemspec
129
128
  - test/.gitignore
130
129
  - test/Gemfile
130
+ - test/_clash.yml
131
131
  - test/_config.yml
132
132
  - test/_expected/includes.html
133
133
  - test/_expected/ink-includes.html
134
134
  - test/_includes/bar.html
135
135
  - test/_includes/foo.html
136
+ - test/_ink_plugins/test-plugin/config.yml
136
137
  - test/_ink_plugins/test-plugin/includes/bar.html
138
+ - test/_ink_plugins/test-plugin/includes/config.html
137
139
  - test/_ink_plugins/test-plugin/includes/greet.html
138
140
  - test/_ink_plugins/test-plugin/includes/some-include.html
139
141
  - test/_ink_plugins/test-plugin/test.rb
@@ -169,12 +171,15 @@ summary: A powerful include tag with conditions, filters and more
169
171
  test_files:
170
172
  - test/.gitignore
171
173
  - test/Gemfile
174
+ - test/_clash.yml
172
175
  - test/_config.yml
173
176
  - test/_expected/includes.html
174
177
  - test/_expected/ink-includes.html
175
178
  - test/_includes/bar.html
176
179
  - test/_includes/foo.html
180
+ - test/_ink_plugins/test-plugin/config.yml
177
181
  - test/_ink_plugins/test-plugin/includes/bar.html
182
+ - test/_ink_plugins/test-plugin/includes/config.html
178
183
  - test/_ink_plugins/test-plugin/includes/greet.html
179
184
  - test/_ink_plugins/test-plugin/includes/some-include.html
180
185
  - test/_ink_plugins/test-plugin/test.rb