sass renderer shouldn't explode if haml isn't available
This commit is contained in:
parent
7840ebf98a
commit
c3b22fe325
|
@ -95,7 +95,11 @@ module Middleman
|
|||
# Change Sass path, for url functions, to the build folder if we're building
|
||||
# @return [Hash]
|
||||
def sass_options
|
||||
ctx = ::Middleman::Renderers::Haml.last_haml_scope || @context
|
||||
ctx = if defined?(::Middleman::Renderers::Haml)
|
||||
::Middleman::Renderers::Haml.last_haml_scope || @context
|
||||
else
|
||||
@context
|
||||
end
|
||||
|
||||
more_opts = {
|
||||
load_paths: ctx.config[:sass_assets_paths],
|
||||
|
|
Loading…
Reference in a new issue