lib/deas/template.rb in deas-0.24.1 vs lib/deas/template.rb in deas-0.25.0
- old
+ new
@@ -64,10 +64,18 @@
Rack::Utils.escape_path(path)
end
alias :u :escape_url
def logger
- @sinatra_call.logger
+ @sinatra_call.settings.logger
+ end
+
+ def router
+ @sinatra_call.settings.router
+ end
+
+ def url_for(url)
+ "#{self.router.base_url}#{url}"
end
def ==(other_scope)
self.sinatra_call == other_scope.sinatra_call
self.class.included_modules == other_scope.class.included_modules