Class: ActionView::TemplateHandlers::RablHandler

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

Instance Method Summary collapse

Instance Method Details

#compile(template) ⇒ Object



32
33
34
35
# File 'lib/rabl/template.rb', line 32

def compile(template) %{
  ::Rabl::Engine.new(#{template.source.inspect}, { :format => #{template.format.inspect} }).
    render(self, assigns.merge(local_assigns))
} end