lib/volt/page/bindings/yield_binding.rb in volt-0.9.3.pre1 vs lib/volt/page/bindings/yield_binding.rb in volt-0.9.3.pre2
- old
+ new
@@ -3,19 +3,19 @@
require 'volt/page/bindings/base_binding'
require 'volt/page/template_renderer'
module Volt
class YieldBinding < BaseBinding
- def initialize(page, target, context, binding_name)
- super(page, target, context, binding_name)
+ def initialize(volt_app, target, context, binding_name)
+ super(volt_app, target, context, binding_name)
# Get the path to the template to yield
full_path = @context.attrs.content_template_path
# Grab the controller for the content
controller = @context.attrs.content_controller
- @current_template = TemplateRenderer.new(@page, @target, controller, @binding_name, full_path)
+ @current_template = TemplateRenderer.new(volt_app, @target, controller, @binding_name, full_path)
end
def remove
if @current_template
# Remove the template if one has been rendered, when the template binding is