Permalink
Browse files

The engine is always known there.

  • Loading branch information...
1 parent ec8a756 commit f8ebdd9500f8da63d126992e6ba9e374b4d8273b @blambeau committed Jun 14, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/sinatra/base.rb
View
@@ -748,6 +748,7 @@ def _render(view, options={}, locals={}, &block)
output
end
+ # preserved for backward compatibility
def compile_template(engine, view, options, views)
tilt_template(view, options.merge(:engine => engine), views)
end
@@ -767,7 +768,7 @@ def tilt_template(view, options, views)
def tilt_compile(view, greedy={})
case view
when Hash
- engine = view[:engine] || find_view_engine(view.to_s, view)
+ engine = view[:engine]
engine = Tilt[engine.to_s] unless Class===engine
path, line = view[:location]
options = view[:options]

0 comments on commit f8ebdd9

Please sign in to comment.