Class: ActionView::TemplateHandlers::SlimHandler

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

Overview

Slim handler for Rails 3.1 and greater

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.call(template) ⇒ Object



22
23
24
# File 'lib/slim/rails.rb', line 22

def self.call(template)
  Slim::Engine.new.compile(template.source)
end

Instance Method Details

#compile(template) ⇒ Object



15
16
17
# File 'lib/slim/rails.rb', line 15

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