Module: Sinatra::Templates

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

Instance Method Summary collapse

Instance Method Details

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



36
37
38
39
# File 'lib/hypertemplate/hook/sinatra.rb', line 36

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

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



32
33
34
# File 'lib/hypertemplate/hook/sinatra.rb', line 32

def tokamak(template, options={}, locals={})
  hyler(template, options, locals)
end