Module: Sinatra::Templates
- Defined in:
- lib/hypertemplate/hook/sinatra.rb
Instance Method Summary collapse
- #hyper(template, options = {}, locals = {}) ⇒ Object
- #tokamak(template, options = {}, locals = {}) ⇒ Object
Instance Method Details
#hyper(template, options = {}, locals = {}) ⇒ Object
36 37 38 39 |
# File 'lib/hypertemplate/hook/sinatra.rb', line 36 def hyper(template, ={}, locals={}) .merge! :layout => false, :media_type => response["Content-Type"] render :hyper, template, , locals end |
#tokamak(template, options = {}, locals = {}) ⇒ Object
32 33 34 |
# File 'lib/hypertemplate/hook/sinatra.rb', line 32 def tokamak(template, ={}, locals={}) hyler(template, , locals) end |