Class: Template::Handlers::Rabl

Inherits:
Object
  • Object
show all
Defined in:
lib/rabl/template.rb

Class Method Summary collapse

Class Method Details

.call(template) ⇒ Object



51
52
53
54
55
56
# File 'lib/rabl/template.rb', line 51

def self.call(template)
  source = template.source

  %{ ::Rabl::Engine.new(#{source.inspect}).
      render(self, assigns.merge(local_assigns)) }
end