Class: Sidewalk::TemplateHandlers::RxhpHandler::Delegate

Inherits:
BaseDelegate
  • Object
show all
Includes:
Rxhp::Html
Defined in:
lib/sidewalk/template_handlers/rxhp_handler.rb

Instance Method Summary collapse

Constructor Details

#initialize(path, template, controller) ⇒ Delegate

Returns a new instance of Delegate.



21
22
23
24
# File 'lib/sidewalk/template_handlers/rxhp_handler.rb', line 21

def initialize path, template, controller
  @path, @template, @controller = path, template, controller
  super controller
end

Instance Method Details

#renderObject



26
27
28
# File 'lib/sidewalk/template_handlers/rxhp_handler.rb', line 26

def render
  eval(@template, binding, @path).render
end