From ac2feb71b82df6d748d9bff3a71261e582a9c110 Mon Sep 17 00:00:00 2001 From: Ryan Tomayko Date: Thu, 4 Mar 2010 03:11:42 -0800 Subject: [PATCH] set @_out_buf as eoutvar for ERB/Erubis (needed for tilt 0.7) --- lib/sinatra/base.rb | 2 ++ 1 file changed, 2 insertions(+) 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