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 +4 -4
- data/README.md +4 -0
- data/lib/nanoc-conref-fs/conref-fs.rb +1 -1
- data/nanoc-conref-fs.gemspec +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: cb197585dc561db562827e176ec5e27d9df500c4
|
4
|
+
data.tar.gz: 8d990f45b2470c99d3894a40d6e0542ef43bf467
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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]]')
|
data/nanoc-conref-fs.gemspec
CHANGED
@@ -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.
|
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.
|
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-
|
11
|
+
date: 2015-10-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nanoc
|