set @_out_buf as eoutvar for ERB/Erubis (needed for tilt 0.7)
This commit is contained in:
parent
035fe4705d
commit
ac2feb71b8
|
@ -289,10 +289,12 @@ module Sinatra
|
|||
# in the template
|
||||
module Templates
|
||||
def erb(template, options={}, locals={})
|
||||
options[:outvar] = '@_out_buf'
|
||||
render :erb, template, options, locals
|
||||
end
|
||||
|
||||
def erubis(template, options={}, locals={})
|
||||
options[:outvar] = '@_out_buf'
|
||||
render :erubis, template, options, locals
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue