fix compass paths

This commit is contained in:
Thomas Reynolds 2011-07-13 11:41:59 -07:00
parent 17be87bafd
commit 199db07dc1
2 changed files with 12 additions and 12 deletions

View file

@ -1,9 +1,8 @@
2.0.0
=====
- Use sinatra before/after hooks for Blog and FrontMatter
- Converted a lot of Middleman::Server in CoreExtensions
- Sprockets JS
- Refactored Dynamically Reloadable Core
- Combine views/ and public/ into a single source/ folder.
- Support YAML front-matter
- Blog-aware
- Replaced Blueprint CSS templates with Susy
- Blog-aware Feature

View file

@ -28,14 +28,15 @@ module Middleman::CoreExtensions::Compass
config.add_import_path(config.sass_dir)
end
# configure :build do
# build_root = File.basename(self.build_dir)
# ::Compass.configuration do |config|
# config.css_dir = File.join(build_root, self.css_dir)
# config.images_dir = File.join(build_root, self.images_dir)
# end
# end
# Required for relative paths
configure :build do
build_root = File.basename(self.build_dir)
::Compass.configuration do |config|
config.css_dir = File.join(build_root, self.css_dir)
config.images_dir = File.join(build_root, self.images_dir)
end
end
app.execute_after_compass_init!