1
0
Fork 0
mirror of https://github.com/middleman/middleman.git synced 2022-11-09 12:20:27 -05:00

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