Class: Arbo::Rails::TemplateHandler
- Inherits:
-
Object
- Object
- Arbo::Rails::TemplateHandler
- Defined in:
- lib/arbo/rails/template_handler.rb
Instance Method Summary collapse
Instance Method Details
#call(template, source = nil) ⇒ Object
27 28 29 30 31 32 33 34 35 |
# File 'lib/arbo/rails/template_handler.rb', line 27 def call(template, source = nil) source = template.source unless source <<-END Arbo::Context.new(assigns, self) { #{source} }.render_in(self).html_safe END end |