nanoc-conref-fs 0.2.0 → 0.2.1

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: 4d7ad8948dbfd2807188dace405629e8556be38b
4
- data.tar.gz: a2e748402407b1c74347d32c4f3cda89fff7d1cd
3
+ metadata.gz: cb197585dc561db562827e176ec5e27d9df500c4
4
+ data.tar.gz: 8d990f45b2470c99d3894a40d6e0542ef43bf467
5
5
  SHA512:
6
- metadata.gz: 331081baa3f15c26b040858f4a24ed03d9d01d6a73448b6da85c19d0908c852f2380eb07c0995cc2cd9d25e0ce454629cad01dae4842167108f049c8a14bcdd8
7
- data.tar.gz: ef19358bbe4722d0181b6d999a8878aad3960208856978555ab22976ad79b2ebb75783bbf4a1d347c06d6d93984c7574b3e7e953956ea9d920f6509304fdbacd
6
+ metadata.gz: 3072389a547de1101eca906624333c9d75184a2247bc07c3d97313924da6fa0109d2c9de38824918fbde11f56f372c38f14edec215a12e6fe3568172b9920f68
7
+ data.tar.gz: 9ac746f06c7256cb58bc0ec16f3f02ebe1ed93b648e9c15719c5ba1f754d899af8acdb84562662dd30e65b5da241e6ff165355b1769531a59bfcdad9b397988b
data/README.md CHANGED
@@ -77,3 +77,7 @@ See the tests for further usage of these conditionals. In both cases, `path` is
77
77
  ### Associating files with data
78
78
 
79
79
  If you have a special `data_association` value, additional metadata to items will be applied. Right now, this only adds a `parent` type to each item.
80
+
81
+ ### Retrieving variables
82
+
83
+ You can retrieve the stored data at any time (for example, in a layout) by calling `VariableMixin.variables`.
@@ -82,7 +82,7 @@ class ConrefFS < Nanoc::DataSource
82
82
  page_vars = { :page => page_vars }.merge(@variables)
83
83
 
84
84
  data = File.read(filename)
85
- return data unless filename.start_with?('content')
85
+ return data unless filename.start_with?('content', 'layouts')
86
86
 
87
87
  # we must obfuscate essential ExtendedMarkdownFilter content
88
88
  data = data.gsub(/\{\{\s*#(\S+)\s*\}\}/, '[[#\1]]')
@@ -3,7 +3,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
3
 
4
4
  Gem::Specification.new do |spec|
5
5
  spec.name = 'nanoc-conref-fs'
6
- spec.version = '0.2.0'
6
+ spec.version = '0.2.1'
7
7
  spec.authors = ['Garen Torikian']
8
8
  spec.email = ['gjtorikian@gmail.com']
9
9
  spec.summary = 'A Nanoc filesystem to permit using conrefs/reusables in your content.'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nanoc-conref-fs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Garen Torikian
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-21 00:00:00.000000000 Z
11
+ date: 2015-10-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nanoc