Class: Template::Handlers::Rabl

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

Class Method Summary collapse

Class Method Details

.call(template, source) ⇒ Object



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

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

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