This commit is contained in:
tdreyno 2009-11-16 16:17:45 -08:00
parent 3f58dd5ea8
commit 7daff4494a

View file

@ -14,7 +14,7 @@ module Middleman
static_version = options.public + request.path_info
send_file(static_version) if File.exists? static_version
location_of_sass_file = options.environment == "build" ? options.build_dir : options.public
location_of_sass_file = options.environment == "build" ? File.join(Dir.pwd, options.build_dir) : options.public
css_filename = File.join(location_of_sass_file, request.path_info)
sass(path.to_sym, ::Compass.sass_engine_options.merge({ :css_filename => css_filename }))