Module: Sinatra::Templates

Defined in:
lib/mochiscript/sinatra/templates.rb

Instance Method Summary collapse

Instance Method Details

#mochiscript(template, options = {}, locals = {}) ⇒ Object



3
4
5
6
# File 'lib/mochiscript/sinatra/templates.rb', line 3

def mochiscript(template, options={}, locals={})
  options.merge! :layout => false, :default_content_type => :js
  render :ms, template, options, locals
end