From c3b22fe325df319f2808f25c5be1ec3407837650 Mon Sep 17 00:00:00 2001 From: Thomas Reynolds Date: Wed, 11 Jun 2014 10:19:10 -0700 Subject: [PATCH] sass renderer shouldn't explode if haml isn't available --- middleman-core/lib/middleman-core/renderers/sass.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/middleman-core/lib/middleman-core/renderers/sass.rb b/middleman-core/lib/middleman-core/renderers/sass.rb index 3baf2872..b5642655 100644 --- a/middleman-core/lib/middleman-core/renderers/sass.rb +++ b/middleman-core/lib/middleman-core/renderers/sass.rb @@ -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],