Module: Sinatra::Templates

Defined in:
lib/tokamak/hook/sinatra.rb

Instance Method Summary collapse

Instance Method Details

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



10
11
12
13
# File 'lib/tokamak/hook/sinatra.rb', line 10

def tokamak(template, options={}, locals={})
  options.merge! :layout => false, :media_type => response["Content-Type"]
  render :tokamak, template, options, locals
end