From 5368875d05777e24d2b2ce9e602098d9fcd33916 Mon Sep 17 00:00:00 2001 From: kematzy Date: Tue, 17 Jul 2012 09:35:40 +0800 Subject: [PATCH] Moved :sass_cache_path from global to Sass renderer --- middleman-core/lib/middleman-core/application.rb | 5 ----- middleman-core/lib/middleman-core/renderers/sass.rb | 5 +++++ 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/middleman-core/lib/middleman-core/application.rb b/middleman-core/lib/middleman-core/application.rb index 383be6f8..093edc13 100644 --- a/middleman-core/lib/middleman-core/application.rb +++ b/middleman-core/lib/middleman-core/application.rb @@ -101,11 +101,6 @@ module Middleman # @return [String] set :css_dir, "stylesheets" - # Location of SASS .sass_cache directory. - # @return [String] - # set :sass_cache_path, "/tmp/middleman-app-name/sass_cache" - set(:sass_cache_path) { File.join(root_path, '.sass_cache') } # runtime compile of path - # Location of images within source. Used by HTML helpers and Compass. # @return [String] set :images_dir, "images" diff --git a/middleman-core/lib/middleman-core/renderers/sass.rb b/middleman-core/lib/middleman-core/renderers/sass.rb index 5b85c4f3..550db121 100644 --- a/middleman-core/lib/middleman-core/renderers/sass.rb +++ b/middleman-core/lib/middleman-core/renderers/sass.rb @@ -14,6 +14,11 @@ module Middleman # Default sass options app.set :sass, {} + # Location of SASS .sass_cache directory. + # @return [String] + # set :sass_cache_path, "/tmp/middleman-app-name/sass_cache" + app.set(:sass_cache_path) { File.join(app.root_path, '.sass_cache') } # runtime compile of path + app.before_configuration do template_extensions :scss => :css, :sass => :css