Fix slim >= 3.0.0 deprecation warning
This commit is contained in:
parent
1cce64d463
commit
0230e26a8c
|
@ -28,7 +28,7 @@ module Middleman
|
||||||
end
|
end
|
||||||
|
|
||||||
# Setup Slim options to work with partials
|
# Setup Slim options to work with partials
|
||||||
::Slim::Engine.set_default_options(
|
::Slim::Engine.set_options(
|
||||||
buffer: '@_out_buf',
|
buffer: '@_out_buf',
|
||||||
use_html_safe: true,
|
use_html_safe: true,
|
||||||
generator: ::Temple::Generators::RailsOutputBuffer,
|
generator: ::Temple::Generators::RailsOutputBuffer,
|
||||||
|
@ -42,7 +42,7 @@ module Middleman
|
||||||
|
|
||||||
::Slim::Embedded::SassEngine.disable_option_validator!
|
::Slim::Embedded::SassEngine.disable_option_validator!
|
||||||
%w(sass scss markdown).each do |engine|
|
%w(sass scss markdown).each do |engine|
|
||||||
::Slim::Embedded.default_options[engine.to_sym] = context_hack
|
::Slim::Embedded.options[engine.to_sym] = context_hack
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue