Module: Sinatra::Templates
- Defined in:
- lib/sinatra/js.rb
Instance Method Summary collapse
-
#rjs(template, options = {}, locals = {}) ⇒ Object
add support for .rjs.
Instance Method Details
#rjs(template, options = {}, locals = {}) ⇒ Object
add support for .rjs
19 20 21 22 23 |
# File 'lib/sinatra/js.rb', line 19 def rjs(template, ={}, locals={}) [:outvar] = '@_out_buf' [:layout] = false render :rjs, template, , locals end |