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:
parent
ac2feb71b8
commit
ce606e0308
1 changed files with 2 additions and 1 deletions
|
@ -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 : ''
|
||||
|
|
Loading…
Reference in a new issue