Merge pull request #1457 from Arcovion/slim-update

Fix slim >= 3.0.0 deprecation warning
This commit is contained in:
Thomas Reynolds 2015-02-18 16:33:56 -08:00
commit 6a228bc5c9

View file

@ -28,7 +28,7 @@ module Middleman
end
# Setup Slim options to work with partials
::Slim::Engine.set_default_options(
::Slim::Engine.set_options(
buffer: '@_out_buf',
use_html_safe: true,
generator: ::Temple::Generators::RailsOutputBuffer,
@ -42,7 +42,7 @@ module Middleman
::Slim::Embedded::SassEngine.disable_option_validator!
%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