Moved :sass_cache_path from global to Sass renderer

This commit is contained in:
kematzy 2012-07-17 09:35:40 +08:00
parent c00f9d5782
commit 5368875d05
2 changed files with 5 additions and 5 deletions

View file

@ -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"

View file

@ -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