Method: ReactiveTemplate#initialize
- Defined in:
- lib/volt/page/reactive_template.rb
#initialize(page, context, template_path) ⇒ ReactiveTemplate
Returns a new instance of ReactiveTemplate.
4 5 6 7 8 9 |
# File 'lib/volt/page/reactive_template.rb', line 4 def initialize(page, context, template_path) @template_path = template_path @target = AttributeTarget.new(nil, nil, self) @template = TemplateRenderer.new(page, @target, context, "main", template_path) end |