Class: Expressr::Renderers::Slim

Inherits:
Base
  • Object
show all
Defined in:
lib/expressr/renderers/slim.rb

Instance Method Summary collapse

Methods inherited from Base

#add_extension

Instance Method Details

#render(view, locals = {}) ⇒ Object



6
7
8
9
# File 'lib/expressr/renderers/slim.rb', line 6

def render(view, locals={})
  view = add_extension(view, 'slim')
  ::Slim::Template.new(view).render(nil, locals)
end