correct relative asset error

This commit is contained in:
tdreyno 2009-11-16 16:14:51 -08:00
parent 4d341d3061
commit 3ec6b7536f
3 changed files with 2 additions and 1 deletions

View file

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

0
spec/fixtures/sample/views/custom.haml vendored Normal file → Executable file
View file

0
spec/page_alias_and_layouts_spec.rb Normal file → Executable file
View file