fix slim 2.0 deprecation warnings

This commit is contained in:
Thomas Reynolds 2013-04-14 09:24:48 -07:00
parent 4b5e6aeb54
commit 31651e4296

View file

@ -26,8 +26,11 @@ module Middleman
context_hack = {
:context => self
}
slim_embedded = defined?(::Slim::Embedded) ? ::Slim::Embedded : ::Slim::EmbeddedEngine
%w(sass scss markdown).each do |engine|
::Slim::EmbeddedEngine.default_options[engine.to_sym] = context_hack
slim_embedded.default_options[engine.to_sym] = context_hack
end
end
end