lib/awestruct/sassable.rb in awestruct-0.0.4 vs lib/awestruct/sassable.rb in awestruct-0.0.5

- old
+ new

@@ -4,16 +4,20 @@ module Awestruct module Sassable def render(context) - sass_opts = { - :load_paths => [ - File.dirname( self.source_path ), - Compass::Frameworks['compass'].stylesheets_directory, - Compass::Frameworks['blueprint'].stylesheets_directory, - ], - } + #sass_opts = { + #:load_paths => [ + #File.dirname( self.source_path ), + #Compass::Frameworks['compass'].stylesheets_directory, + #Compass::Frameworks['blueprint'].stylesheets_directory, + #], + #} + sass_opts = Compass.sass_engine_options + sass_opts[:load_paths] ||= [] + sass_opts[:load_paths] << File.dirname( self.source_path ) + sass_engine = Sass::Engine.new( raw_page_content, sass_opts ) sass_engine.render end def output_extension