volt 0.6.4 → 0.6.5

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: 0ea59d20f4388a14fc9642a6ee3c57884cb04984
4
- data.tar.gz: a4468c1100c9a6103fe5f8373f948fc115d7c187
3
+ metadata.gz: d799deb4ea372c6d37040e23d0e7317e1bae2820
4
+ data.tar.gz: 1590f92d018a6344c3b60a9e10720135c6c0a27e
5
5
  SHA512:
6
- metadata.gz: 37a28c731eeb99d9955d52859f82cff457e4d480bc6dc2b6b2fd276388ccfaae416f69002d35030c332ff987a1d457bb95057a78f6db07b8b4f24c953c3f4989
7
- data.tar.gz: 18d0725eda9d3ca81e96555a951b5967cf59c8b64323443ff7102b1b7824b959c6679be4ea7552744f5c34cc580dea248c2c9165431324c16961dfb02ec4e292
6
+ metadata.gz: d5a64ae3a5d148e115725f9a0fa2cc172df77f39e3c483896004b8683427df769b49fffb21de18b10aac7097dccf5ac563a7bd5444b65e114e98735913e9707a
7
+ data.tar.gz: 858c561299e391deb865d4be3017110f55e7890a9bcc716c609d5f18c350f93dec900c97ee888164a106f90b4df924c5b91709e885324984e4ac2a8195de295f
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.6.4
1
+ 0.6.5
@@ -8,7 +8,7 @@ class ComponentBinding < TemplateBinding
8
8
  # components access to the page collections.
9
9
  def render_template(full_path, controller_name)
10
10
  # TODO: at the moment a :body section and a :title will both initialize different
11
- # controllers. Maybe we should have a way to tie them together?
11
+ # controllers. Maybe we should have a way to tie them together?
12
12
  controller_class = get_controller(controller_name)
13
13
  model_with_parent = {parent: @context}.merge(@model || {})
14
14
 
@@ -23,6 +23,7 @@ class ComponentBinding < TemplateBinding
23
23
  else
24
24
  # There is not a controller
25
25
  current_context = SubContext.new(model_with_parent, $page)
26
+ @controller = nil
26
27
  end
27
28
 
28
29
  @current_template = TemplateRenderer.new(@page, @target, current_context, @binding_name, full_path)
@@ -127,7 +127,6 @@ class TemplateBinding < BaseBinding
127
127
  def render_template(full_path, controller_name)
128
128
  # TODO: at the moment a :body section and a :title will both initialize different
129
129
  # controllers. Maybe we should have a way to tie them together?
130
-
131
130
  controller_class = get_controller(controller_name)
132
131
  if controller_class
133
132
  args = []
@@ -139,6 +138,7 @@ class TemplateBinding < BaseBinding
139
138
  else
140
139
  # Pass the context directly
141
140
  current_context = @context
141
+ @controller = nil
142
142
  end
143
143
 
144
144
  @current_template = TemplateRenderer.new(@page, @target, current_context, @binding_name, full_path)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: volt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.4
4
+ version: 0.6.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Stout