diff --git a/lib/sinatra/base.rb b/lib/sinatra/base.rb index 406008f9..433a87e1 100644 --- a/lib/sinatra/base.rb +++ b/lib/sinatra/base.rb @@ -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