set @_out_buf as eoutvar for ERB/Erubis (needed for tilt 0.7)

This commit is contained in:
Ryan Tomayko 2010-03-04 03:11:42 -08:00
parent 035fe4705d
commit ac2feb71b8
1 changed files with 2 additions and 0 deletions

View File

@ -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