[Command Line] Store sass cache files in the sass directory of the project. Closes GH-8.

This commit is contained in:
Chris Eppstein 2009-05-23 09:45:16 -07:00
parent faadde2379
commit fcdaf41dbc
3 changed files with 5 additions and 1 deletions

2
.gitignore vendored
View File

@ -2,8 +2,10 @@
tmp/*
examples/*/stylesheets/*
examples/*/*.html
examples/*/src/.sass-cache
test/tmp
test/fixtures/stylesheets/*/tmp
test/fixtures/stylesheets/*/saved
test/fixtures/stylesheets/empty
test/fixtures/stylesheets/*/sass/.sass-cache
pkg/*

View File

@ -64,7 +64,8 @@ module Compass
:line_comments => options[:line_comments],
:style => options[:style],
:css_filename => css_filename,
:load_paths => options[:load_paths])
:load_paths => options[:load_paths],
:cache_location => options[:cache_location])
css_content = engine.render
write_file(css_filename, css_content, options.merge(:force => true))
else

View File

@ -10,6 +10,7 @@ module Compass
self.from, self.to = from, to
self.logger = options.delete(:logger)
self.options = options
self.options[:cache_location] ||= File.join(from, ".sass-cache")
end
def sass_files