1
0
Fork 0
mirror of https://github.com/sinatra/sinatra synced 2023-03-27 23:18:01 -04:00

make test template classes compatibile with tilt 0.7

This commit is contained in:
Ryan Tomayko 2010-03-04 03:12:36 -08:00
parent ac2feb71b8
commit ce606e0308

View file

@ -1,8 +1,9 @@
require File.dirname(__FILE__) + '/helper'
class TestTemplate < Tilt::Template
def compile!
def prepare
end
alias compile! prepare # for tilt < 0.7
def evaluate(scope, locals={}, &block)
inner = block ? block.call : ''