Class: ActionView::TemplateHandlers::SlimHandler

Inherits:
TemplateHandler
  • Object
show all
Includes:
Compilable
Defined in:
lib/slim/rails.rb

Instance Method Summary collapse

Instance Method Details

#compile(template) ⇒ Object



8
9
10
# File 'lib/slim/rails.rb', line 8

def compile(template)
  return Slim::Engine.new(template.source).optimized
end