octopress-ink 1.0.0.alpha.17 → 1.0.0.alpha.18

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.
Files changed (45) hide show
  1. checksums.yaml +4 -4
  2. data/lib/octopress-ink/assets/asset.rb +4 -3
  3. data/lib/octopress-ink/assets/config.rb +39 -0
  4. data/lib/octopress-ink/assets/include.rb +1 -5
  5. data/lib/octopress-ink/assets/layout.rb +0 -4
  6. data/lib/octopress-ink/assets/sass.rb +1 -1
  7. data/lib/octopress-ink/assets.rb +1 -0
  8. data/lib/octopress-ink/helpers/content_for.rb +2 -2
  9. data/lib/octopress-ink/jekyll/hooks.rb +3 -1
  10. data/lib/octopress-ink/plugin.rb +11 -1
  11. data/lib/octopress-ink/plugins.rb +25 -2
  12. data/lib/octopress-ink/tags/content_for.rb +1 -1
  13. data/lib/octopress-ink/tags/include.rb +3 -3
  14. data/lib/octopress-ink/version.rb +1 -1
  15. data/test/expected/tag_tests/content_for.html +3 -12
  16. data/test/expected/tag_tests/footer.html +2 -12
  17. data/test/expected/tag_tests/head.html +4 -13
  18. data/test/expected/tag_tests/include_theme_override.html +1 -1
  19. data/test/expected/tag_tests/scripts.html +3 -12
  20. data/test/expected/test_config/plugin_config.html +2 -0
  21. data/test/expected/test_config/theme_config.html +2 -0
  22. data/test/site/tag_tests/content_for.html +3 -12
  23. data/test/site/tag_tests/footer.html +2 -12
  24. data/test/site/tag_tests/head.html +4 -13
  25. data/test/site/tag_tests/include_theme_override.html +1 -1
  26. data/test/site/tag_tests/scripts.html +3 -12
  27. data/test/site/test_config/plugin_config.html +2 -0
  28. data/test/site/test_config/theme_config.html +2 -0
  29. data/test/source/_custom/awesome-sauce/config.yml +1 -0
  30. data/test/source/_custom/theme/config.yml +1 -0
  31. data/test/source/_layouts/content_for.html +3 -0
  32. data/test/source/_layouts/head.html +1 -0
  33. data/test/source/_plugins/awesome-sauce/config.yml +2 -0
  34. data/test/source/_plugins/test-theme/config.yml +2 -0
  35. data/test/source/_plugins/test-theme/includes/{foo.html → greet.html} +0 -0
  36. data/test/source/tag_tests/content_for.html +1 -1
  37. data/test/source/tag_tests/footer.html +1 -1
  38. data/test/source/tag_tests/head.html +1 -1
  39. data/test/source/tag_tests/include_theme.html +1 -1
  40. data/test/source/tag_tests/scripts.html +1 -1
  41. data/test/source/test_config/plugin_config.html +4 -0
  42. data/test/source/test_config/theme_config.html +4 -0
  43. data/test/test.rb +6 -0
  44. metadata +29 -6
  45. data/test/source/_layouts/default.html +0 -12
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: aa21d7ff884dfda2459b338edfe7d06fd6f18a7f
4
- data.tar.gz: 6bc328cd1284b07ca85f7c5e002396ab3bdf5f55
3
+ metadata.gz: c888518337b350c4592c3808f128f21393f30e12
4
+ data.tar.gz: 8733d8937ac4bdc95426e0112aeb3a242bc63f05
5
5
  SHA512:
6
- metadata.gz: b1ab05f90a48f9f18161cdaf3bfc4b61e5b4669e85fe78d2b3ee30738d25ce591b59cae7e05e3c773075089e1c781a1fd2cd27cb83d80675cee29973d83ad098
7
- data.tar.gz: 1d39ca6d799a822141411cfd64cb5a2b962c4c8cb21d4e2d386a60dae804605908b5166948863b5b67fa54dcb069cce266f64534035a80c5588f0d8cac12c795
6
+ metadata.gz: 560806fb9ef8998368bc7511bc77d8c6ffed88ea4c141a1e11b8136ae9d391acd329d9c01f008b7ce50d94c787b097f30eae8cbf1cffc25a4058ba1ac2405a92
7
+ data.tar.gz: d3563681fbf6e66639eb31d6c98b8b5760d2f2ac9aba7ceba84bb99f53be6b67a5eb8f1be5c848a6f0bda4ce476f7ba0c691ed618648e0255a982e585d099dfa
@@ -16,7 +16,9 @@ module Octopress
16
16
  end
17
17
 
18
18
  def path(site)
19
- unless @found_file
19
+ if @found_file and !@no_cache
20
+ @found_file
21
+ else
20
22
  files = []
21
23
  files << user_path(site)
22
24
  files << plugin_path unless @plugin.type == 'local_plugin'
@@ -27,7 +29,6 @@ module Octopress
27
29
  end
28
30
  @found_file = Pathname.new files[0]
29
31
  end
30
- @found_file
31
32
  end
32
33
 
33
34
  def file(file, site)
@@ -52,7 +53,7 @@ module Octopress
52
53
  end
53
54
 
54
55
  def user_dir(site)
55
- File.join site.source, Plugins.custom_dir(site), @dir
56
+ File.join site.source, Plugins.custom_dir(site.config), @dir
56
57
  end
57
58
 
58
59
  def local_plugin_path(site)
@@ -0,0 +1,39 @@
1
+ module Octopress
2
+ module Assets
3
+ class Config < Asset
4
+
5
+ def initialize(plugin, path)
6
+ @root = plugin.assets_path
7
+ @plugin = plugin
8
+ @dir = plugin.namespace
9
+ @type = ''
10
+ @exists = {}
11
+ @file = path
12
+ end
13
+
14
+ def user_dir(site)
15
+ File.join site['source'], Plugins.custom_dir(site), @dir
16
+ end
17
+
18
+ def local_plugin_path(site)
19
+ File.join site['source'], @dir, @file
20
+ end
21
+
22
+ def read(site)
23
+ config = {}
24
+ if @plugin.type != 'local_plugin'
25
+ default = plugin_path
26
+ if exists? default
27
+ config = YAML::load(File.open(default))
28
+ end
29
+ end
30
+ override = user_path(site)
31
+ if exists? override
32
+ config = config.deep_merge YAML::load(File.open(override))
33
+ end
34
+ config
35
+ end
36
+ end
37
+ end
38
+ end
39
+
@@ -7,13 +7,9 @@ module Octopress
7
7
  @type = type
8
8
  @plugin = plugin
9
9
  @dir = File.join(plugin.namespace, type)
10
+ @no_cache = true
10
11
  @exists = {}
11
12
  end
12
-
13
- def file(file, site)
14
- @file = file
15
- path(site)
16
- end
17
13
  end
18
14
  end
19
15
  end
@@ -2,10 +2,6 @@ module Octopress
2
2
  module Assets
3
3
  class Layout < Asset
4
4
 
5
- def file(file, site)
6
- @file = file
7
- end
8
-
9
5
  def register(site)
10
6
  name = "#{@plugin.namespace}:#{@file}"
11
7
  name = name.split(".")[0..-2].join(".")
@@ -17,7 +17,7 @@ module Octopress
17
17
 
18
18
  # TODO: choose user path before local path.
19
19
  def user_load_path(site)
20
- File.join(site.source, Plugins.custom_dir(site), @dir, File.dirname(@file)).sub /\/\.$/, ''
20
+ File.join(site.source, Plugins.custom_dir(site.config), @dir, File.dirname(@file)).sub /\/\.$/, ''
21
21
  end
22
22
 
23
23
  def theme_load_path
@@ -1,6 +1,7 @@
1
1
  module Octopress
2
2
  module Assets
3
3
  autoload :Asset, 'octopress-ink/assets/asset'
4
+ autoload :Config, 'octopress-ink/assets/config'
4
5
  autoload :Javascript, 'octopress-ink/assets/javascript'
5
6
  autoload :Stylesheet, 'octopress-ink/assets/stylesheet'
6
7
  autoload :Sass, 'octopress-ink/assets/sass'
@@ -16,12 +16,12 @@ module Octopress
16
16
  end
17
17
 
18
18
  def self.render(context, block)
19
- content = get_block(context, block).map { |b| b.strip }.join
19
+ content = get_block(context, block).map { |b| b }.join
20
20
  end
21
21
 
22
22
  def self.append_to_block(context, block, content)
23
23
  converter = context.environments.first['converter']
24
- content = converter.convert(content.strip).strip
24
+ content = converter.convert(content).lstrip
25
25
  get_block(context, block) << content
26
26
  end
27
27
  end
@@ -1,10 +1,12 @@
1
-
2
1
  module Jekyll
3
2
  module Convertible
4
3
  alias_method :do_layout_orig, :do_layout
5
4
 
6
5
  def do_layout(payload, layouts)
7
6
  # The contentblock tags needs access to the converter to process it while rendering.
7
+ config = Octopress::Plugins.config(payload['site'])
8
+ payload['plugins'] = config['plugins']
9
+ payload['theme'] = config['theme']
8
10
  payload['converter'] = self.converter
9
11
  do_layout_orig(payload, layouts)
10
12
  end
@@ -1,6 +1,6 @@
1
1
  module Octopress
2
2
  class Plugin
3
- attr_accessor :name, :type, :asset_override, :assets_path,
3
+ attr_accessor :name, :type, :asset_override, :assets_path, :config,
4
4
  :layouts_dir, :stylesheets_dir, :javascripts_dir, :files_dir, :includes_dir, :images_dir,
5
5
  :layouts, :includes, :stylesheets, :javascripts, :images, :sass, :fonts, :files
6
6
 
@@ -12,6 +12,7 @@ module Octopress
12
12
  @includes_dir = 'includes'
13
13
  @javascripts_dir = 'javascripts'
14
14
  @stylesheets_dir = 'stylesheets'
15
+ @config_file = 'config.yml'
15
16
  @name = name
16
17
  @type = type
17
18
  @layouts = []
@@ -25,12 +26,17 @@ module Octopress
25
26
  add_assets
26
27
  add_layouts
27
28
  add_includes
29
+ add_config
28
30
  end
29
31
 
30
32
  def add_assets
31
33
 
32
34
  end
33
35
 
36
+ def add_config
37
+ @config = Assets::Config.new(self, @config_file)
38
+ end
39
+
34
40
  def namespace
35
41
  if @type == 'local_plugin'
36
42
  ''
@@ -139,5 +145,9 @@ module Octopress
139
145
  def include(file, site)
140
146
  @includes.file(file, site)
141
147
  end
148
+
149
+ def configs(site)
150
+ @config.read(site)
151
+ end
142
152
  end
143
153
  end
@@ -23,6 +23,25 @@ module Octopress
23
23
  [@theme].concat(@plugins).concat(@local_plugins).compact
24
24
  end
25
25
 
26
+ def self.config(site)
27
+ if @config
28
+ @config
29
+ else
30
+ @config = {}
31
+ @config['plugins'] = {}
32
+ @config['theme'] = @theme.configs(site)
33
+
34
+
35
+ plugins.each do |p|
36
+ unless p == @theme
37
+ @config['plugins'][p.name] = p.configs(site)
38
+ end
39
+ end
40
+
41
+ @config
42
+ end
43
+ end
44
+
26
45
  def self.include(name, file, site)
27
46
  p = plugin(name)
28
47
  p.include(file, site)
@@ -47,8 +66,12 @@ module Octopress
47
66
  end
48
67
  end
49
68
 
50
- def self.custom_dir(site)
51
- site.config['custom'] || CUSTOM_DIR
69
+ def self.custom_dir(config)
70
+ if config['octopress'] and config['octopress']['custom']
71
+ config['octopress']['custom']
72
+ else
73
+ CUSTOM_DIR
74
+ end
52
75
  end
53
76
 
54
77
  def self.fingerprint(paths)
@@ -9,7 +9,7 @@ module Octopress
9
9
  end
10
10
 
11
11
  def render(context)
12
- Helpers::ContentFor.append_to_block(context, @block_name, super.strip)
12
+ Helpers::ContentFor.append_to_block(context, @block_name, super)
13
13
  ''
14
14
  end
15
15
  end
@@ -13,9 +13,9 @@ module Octopress
13
13
 
14
14
  # If markup references a plugin e.g. plugin-name:include-file.html
15
15
  if @markup.strip =~ PLUGIN_SYNTAX
16
- @plugin = $1
17
- @path = $2
18
- content = Plugins.include(@plugin, @path, context.registers[:site]).read
16
+ plugin = $1
17
+ path = $2
18
+ content = Plugins.include(plugin, path, context.registers[:site]).read
19
19
  partial = Liquid::Template.parse(content)
20
20
  context.stack {
21
21
  context['include'] = include_tag.parse_params(context)
@@ -1,5 +1,5 @@
1
1
  module Octopress
2
2
  module Ink
3
- VERSION = "1.0.0.alpha.17"
3
+ VERSION = "1.0.0.alpha.18"
4
4
  end
5
5
  end
@@ -1,13 +1,4 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8">
5
- <meta name='generator' content='Octopress 1.0.0.alpha.15'>
1
+ Testing content for
2
+
3
+
6
4
 
7
- </head>
8
- <body>
9
- Testing content for
10
-
11
-
12
- </body>
13
- </html>
@@ -1,13 +1,3 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8">
5
- <meta name='generator' content='Octopress 1.0.0.alpha.15'>
6
1
 
7
- </head>
8
- <body>
9
-
10
- <footer>This should go in the footer</footer>
11
-
12
- </body>
13
- </html>
2
+ <footer>This should go in the footer</footer>
3
+
@@ -1,13 +1,4 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8">
5
- <meta name='generator' content='Octopress 1.0.0.alpha.15'>
6
- Testing head tagTesting that content_for is additive
7
- </head>
8
- <body>
9
-
10
-
11
-
12
- </body>
13
- </html>
1
+ <meta name='generator' content='Octopress 1.0.0.alpha.17'>
2
+ Testing head tag
3
+ Testing that content_for is additive
4
+
@@ -1 +1 @@
1
- , I heard you like includes.
1
+ include from theme override
@@ -1,13 +1,4 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8">
5
- <meta name='generator' content='Octopress 1.0.0.alpha.15'>
6
1
 
7
- </head>
8
- <body>
9
-
10
-
11
- Testing scripts
12
- </body>
13
- </html>
2
+
3
+ Testing scripts
4
+
@@ -0,0 +1,2 @@
1
+ config from plugin
2
+ config from plugin override
@@ -0,0 +1,2 @@
1
+ config from theme
2
+ config from theme override
@@ -1,13 +1,4 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8">
5
- <meta name='generator' content='Octopress 1.0.0.alpha.15'>
1
+ Testing content for
2
+
3
+
6
4
 
7
- </head>
8
- <body>
9
- Testing content for
10
-
11
-
12
- </body>
13
- </html>
@@ -1,13 +1,3 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8">
5
- <meta name='generator' content='Octopress 1.0.0.alpha.15'>
6
1
 
7
- </head>
8
- <body>
9
-
10
- <footer>This should go in the footer</footer>
11
-
12
- </body>
13
- </html>
2
+ <footer>This should go in the footer</footer>
3
+
@@ -1,13 +1,4 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8">
5
- <meta name='generator' content='Octopress 1.0.0.alpha.15'>
6
- Testing head tagTesting that content_for is additive
7
- </head>
8
- <body>
9
-
10
-
11
-
12
- </body>
13
- </html>
1
+ <meta name='generator' content='Octopress 1.0.0.alpha.17'>
2
+ Testing head tag
3
+ Testing that content_for is additive
4
+
@@ -1 +1 @@
1
- , I heard you like includes.
1
+ include from theme override
@@ -1,13 +1,4 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8">
5
- <meta name='generator' content='Octopress 1.0.0.alpha.15'>
6
1
 
7
- </head>
8
- <body>
9
-
10
-
11
- Testing scripts
12
- </body>
13
- </html>
2
+
3
+ Testing scripts
4
+
@@ -0,0 +1,2 @@
1
+ config from plugin
2
+ config from plugin override
@@ -0,0 +1,2 @@
1
+ config from theme
2
+ config from theme override
@@ -0,0 +1 @@
1
+ test_override: config from plugin override
@@ -0,0 +1 @@
1
+ test_override: config from theme override
@@ -0,0 +1,3 @@
1
+ {% yield foo %}
2
+ {% wrap_yield footer %}<footer>{= yield }</footer>{% endwrap_yield %}
3
+ {% yield scripts %}
@@ -0,0 +1 @@
1
+ {% yield head %}
@@ -0,0 +1,2 @@
1
+ test: config from plugin
2
+ test_override: also config from plugin
@@ -0,0 +1,2 @@
1
+ test: config from theme
2
+ test_override: also config from theme
@@ -1,5 +1,5 @@
1
1
  ---
2
- layout: default
2
+ layout: content_for
3
3
  ---
4
4
  {% content_for foo %}
5
5
  Testing content for
@@ -1,5 +1,5 @@
1
1
  ---
2
- layout: default
2
+ layout: content_for
3
3
  ---
4
4
  {% footer %}
5
5
  This should go in the footer
@@ -1,5 +1,5 @@
1
1
  ---
2
- layout: default
2
+ layout: head
3
3
  ---
4
4
  {% head %}
5
5
  Testing head tag
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  ---
3
3
  Testing theme include
4
- {% include theme:foo.html greeting="Yo Dawg" %}
4
+ {% include theme:greet.html greeting="Yo Dawg" %}
@@ -1,5 +1,5 @@
1
1
  ---
2
- layout: default
2
+ layout: content_for
3
3
  ---
4
4
  {% scripts %}
5
5
  Testing scripts
@@ -0,0 +1,4 @@
1
+ ---
2
+ ---
3
+ {{ plugins.awesome-sauce.test }}
4
+ {{ plugins.awesome-sauce.test_override }}
@@ -0,0 +1,4 @@
1
+ ---
2
+ ---
3
+ {{ theme.test }}
4
+ {{ theme.test_override }}
data/test/test.rb CHANGED
@@ -42,6 +42,11 @@ def test_layouts(dir)
42
42
  layouts.each { |file| test("layout_tests/#{file}.html", dir) }
43
43
  end
44
44
 
45
+ def test_configs(dir)
46
+ configs = %w{plugin_config theme_config}
47
+ configs.each { |file| test("test_config/#{file}.html", dir) }
48
+ end
49
+
45
50
  def test_stylesheets(dir, concat_css=true)
46
51
  if concat_css
47
52
  stylesheets = %w{all-* print-*}
@@ -61,6 +66,7 @@ end
61
66
  test_tags('expected')
62
67
  test_layouts('expected')
63
68
  test_stylesheets('concat_css')
69
+ test_configs('expected')
64
70
 
65
71
  build '_concat_css_false.yml'
66
72
  test_stylesheets('concat_css_false', false)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: octopress-ink
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.alpha.17
4
+ version: 1.0.0.alpha.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Mathis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-14 00:00:00.000000000 Z
11
+ date: 2014-01-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -97,6 +97,7 @@ files:
97
97
  - lib/octopress-ink.rb
98
98
  - lib/octopress-ink/assets.rb
99
99
  - lib/octopress-ink/assets/asset.rb
100
+ - lib/octopress-ink/assets/config.rb
100
101
  - lib/octopress-ink/assets/include.rb
101
102
  - lib/octopress-ink/assets/javascript.rb
102
103
  - lib/octopress-ink/assets/layout.rb
@@ -149,6 +150,8 @@ files:
149
150
  - test/expected/tag_tests/include_theme.html
150
151
  - test/expected/tag_tests/include_theme_override.html
151
152
  - test/expected/tag_tests/scripts.html
153
+ - test/expected/test_config/plugin_config.html
154
+ - test/expected/test_config/theme_config.html
152
155
  - test/sass_compact/stylesheets/all-e10f647557c9d610df6df40a458bc823.css
153
156
  - test/sass_compact/stylesheets/print-0dc274efb4e3fba0ae71bd22eef6fb38.css
154
157
  - test/sass_expanded/stylesheets/all-e10f647557c9d610df6df40a458bc823.css
@@ -168,22 +171,29 @@ files:
168
171
  - test/site/tag_tests/include_theme.html
169
172
  - test/site/tag_tests/include_theme_override.html
170
173
  - test/site/tag_tests/scripts.html
174
+ - test/site/test_config/plugin_config.html
175
+ - test/site/test_config/theme_config.html
171
176
  - test/source/.gitignore
177
+ - test/source/_custom/awesome-sauce/config.yml
178
+ - test/source/_custom/theme/config.yml
172
179
  - test/source/_custom/theme/includes/bar.html
173
180
  - test/source/_custom/theme/layouts/test.html
174
181
  - test/source/_custom/theme/stylesheets/_colors.sass
175
182
  - test/source/_custom/theme/stylesheets/theme-test.css
176
183
  - test/source/_includes/foo.html
177
- - test/source/_layouts/default.html
184
+ - test/source/_layouts/content_for.html
185
+ - test/source/_layouts/head.html
178
186
  - test/source/_layouts/local.html
187
+ - test/source/_plugins/awesome-sauce/config.yml
179
188
  - test/source/_plugins/awesome-sauce/includes/some-include.html
180
189
  - test/source/_plugins/awesome-sauce/layouts/test-layout.html
181
190
  - test/source/_plugins/awesome-sauce/stylesheets/plugin-media-test.css
182
191
  - test/source/_plugins/awesome-sauce/stylesheets/plugin-test.css
183
192
  - test/source/_plugins/bundler.rb
193
+ - test/source/_plugins/test-theme/config.yml
184
194
  - test/source/_plugins/test-theme/files/test.html
185
195
  - test/source/_plugins/test-theme/includes/bar.html
186
- - test/source/_plugins/test-theme/includes/foo.html
196
+ - test/source/_plugins/test-theme/includes/greet.html
187
197
  - test/source/_plugins/test-theme/javascripts/bar.js
188
198
  - test/source/_plugins/test-theme/javascripts/foo.js
189
199
  - test/source/_plugins/test-theme/layouts/default.html
@@ -209,6 +219,8 @@ files:
209
219
  - test/source/tag_tests/include_theme.html
210
220
  - test/source/tag_tests/include_theme_override.html
211
221
  - test/source/tag_tests/scripts.html
222
+ - test/source/test_config/plugin_config.html
223
+ - test/source/test_config/theme_config.html
212
224
  - test/test.rb
213
225
  homepage: https://github.com/octopress/ink
214
226
  licenses:
@@ -262,6 +274,8 @@ test_files:
262
274
  - test/expected/tag_tests/include_theme.html
263
275
  - test/expected/tag_tests/include_theme_override.html
264
276
  - test/expected/tag_tests/scripts.html
277
+ - test/expected/test_config/plugin_config.html
278
+ - test/expected/test_config/theme_config.html
265
279
  - test/sass_compact/stylesheets/all-e10f647557c9d610df6df40a458bc823.css
266
280
  - test/sass_compact/stylesheets/print-0dc274efb4e3fba0ae71bd22eef6fb38.css
267
281
  - test/sass_expanded/stylesheets/all-e10f647557c9d610df6df40a458bc823.css
@@ -281,22 +295,29 @@ test_files:
281
295
  - test/site/tag_tests/include_theme.html
282
296
  - test/site/tag_tests/include_theme_override.html
283
297
  - test/site/tag_tests/scripts.html
298
+ - test/site/test_config/plugin_config.html
299
+ - test/site/test_config/theme_config.html
284
300
  - test/source/.gitignore
301
+ - test/source/_custom/awesome-sauce/config.yml
302
+ - test/source/_custom/theme/config.yml
285
303
  - test/source/_custom/theme/includes/bar.html
286
304
  - test/source/_custom/theme/layouts/test.html
287
305
  - test/source/_custom/theme/stylesheets/_colors.sass
288
306
  - test/source/_custom/theme/stylesheets/theme-test.css
289
307
  - test/source/_includes/foo.html
290
- - test/source/_layouts/default.html
308
+ - test/source/_layouts/content_for.html
309
+ - test/source/_layouts/head.html
291
310
  - test/source/_layouts/local.html
311
+ - test/source/_plugins/awesome-sauce/config.yml
292
312
  - test/source/_plugins/awesome-sauce/includes/some-include.html
293
313
  - test/source/_plugins/awesome-sauce/layouts/test-layout.html
294
314
  - test/source/_plugins/awesome-sauce/stylesheets/plugin-media-test.css
295
315
  - test/source/_plugins/awesome-sauce/stylesheets/plugin-test.css
296
316
  - test/source/_plugins/bundler.rb
317
+ - test/source/_plugins/test-theme/config.yml
297
318
  - test/source/_plugins/test-theme/files/test.html
298
319
  - test/source/_plugins/test-theme/includes/bar.html
299
- - test/source/_plugins/test-theme/includes/foo.html
320
+ - test/source/_plugins/test-theme/includes/greet.html
300
321
  - test/source/_plugins/test-theme/javascripts/bar.js
301
322
  - test/source/_plugins/test-theme/javascripts/foo.js
302
323
  - test/source/_plugins/test-theme/layouts/default.html
@@ -322,4 +343,6 @@ test_files:
322
343
  - test/source/tag_tests/include_theme.html
323
344
  - test/source/tag_tests/include_theme_override.html
324
345
  - test/source/tag_tests/scripts.html
346
+ - test/source/test_config/plugin_config.html
347
+ - test/source/test_config/theme_config.html
325
348
  - test/test.rb
@@ -1,12 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8">
5
- {% yield head %}
6
- </head>
7
- <body>
8
- {% yield foo %}
9
- {% wrap_yield footer %}<footer>{= yield }</footer>{% endwrap_yield %}
10
- {% yield scripts %}
11
- </body>
12
- </html>