From 356f134621206522e6e1858414dab1403be6ee42 Mon Sep 17 00:00:00 2001 From: Chris Eppstein Date: Mon, 16 Mar 2009 20:08:38 -0700 Subject: [PATCH] Added a configuration helper method to access the compass load paths suitable for passing to the Sass option :load_paths --- lib/compass/configuration.rb | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/lib/compass/configuration.rb b/lib/compass/configuration.rb index 72b6fbfe..1f63c964 100644 --- a/lib/compass/configuration.rb +++ b/lib/compass/configuration.rb @@ -114,6 +114,12 @@ module Compass end def to_sass_engine_options + engine_opts = {:load_paths => sass_load_paths} + engine_opts[:style] = output_style if output_style + engine_opts + end + + def sass_load_paths load_paths = [] if project_path && sass_dir load_paths << File.join(project_path, sass_dir) @@ -121,9 +127,7 @@ module Compass Compass::Frameworks::ALL.each do |framework| load_paths << framework.stylesheets_directory end - engine_opts = {:load_paths => load_paths} - engine_opts[:style] = output_style if output_style - engine_opts + load_paths end # Support for testing.