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 +4 -4
- data/VERSION +1 -1
- data/lib/volt/page/bindings/component_binding.rb +2 -1
- data/lib/volt/page/bindings/template_binding.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d799deb4ea372c6d37040e23d0e7317e1bae2820
|
4
|
+
data.tar.gz: 1590f92d018a6344c3b60a9e10720135c6c0a27e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d5a64ae3a5d148e115725f9a0fa2cc172df77f39e3c483896004b8683427df769b49fffb21de18b10aac7097dccf5ac563a7bd5444b65e114e98735913e9707a
|
7
|
+
data.tar.gz: 858c561299e391deb865d4be3017110f55e7890a9bcc716c609d5f18c350f93dec900c97ee888164a106f90b4df924c5b91709e885324984e4ac2a8195de295f
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.6.
|
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)
|