mirror of
https://github.com/sinatra/sinatra
synced 2023-03-27 23:18:01 -04:00
Let's keep default_options renderer agnostic
This commit is contained in:
parent
3a38dc3491
commit
f80203adb6
1 changed files with 2 additions and 3 deletions
|
@ -604,7 +604,7 @@ module Sinatra
|
|||
private
|
||||
|
||||
def render_haml(content, options = {}, &b)
|
||||
haml_options = (options[:options] || {}).merge(Sinatra.options.haml)
|
||||
haml_options = (options[:options] || {}).merge(Sinatra.options.haml || {})
|
||||
::Haml::Engine.new(content, haml_options).render(options[:scope] || self, options[:locals] || {}, &b)
|
||||
end
|
||||
|
||||
|
@ -838,8 +838,7 @@ module Sinatra
|
|||
:views => root + '/views',
|
||||
:public => root + '/public',
|
||||
:sessions => false,
|
||||
:logging => true,
|
||||
:haml => {}
|
||||
:logging => true
|
||||
}
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue