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



24
25
26
# File 'lib/slim/rails.rb', line 24

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

Instance Method Details

#compile(template) ⇒ Object



17
18
19
# File 'lib/slim/rails.rb', line 17

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