Permalink
Browse files

Now gets @imports properly

  • Loading branch information...
1 parent 38248b2 commit b0fae98efcdd71abc2ff2a69c84a6c263404b62e @hawx hawx committed Oct 17, 2010
View
1 .yardoc/checksums
@@ -0,0 +1 @@
+lib/guard/sass.rb 34c6dc83d464cd0d5417b0569a6c5073780270d3
View
BIN .yardoc/objects/Guard.dat
Binary file not shown.
View
BIN .yardoc/objects/Guard/Sass.dat
Binary file not shown.
View
BIN .yardoc/objects/Guard/Sass/VERSION.dat
Binary file not shown.
View
BIN .yardoc/objects/Guard/Sass/build_sass_i.dat
Binary file not shown.
View
BIN .yardoc/objects/Guard/Sass/get_output_i.dat
Binary file not shown.
View
BIN .yardoc/objects/Guard/Sass/options_3D_i.dat
Binary file not shown.
View
BIN .yardoc/objects/Guard/Sass/options_i.dat
Binary file not shown.
View
BIN .yardoc/objects/Guard/Sass/run_on_change_i.dat
Binary file not shown.
View
BIN .yardoc/objects/Guard/Sass/start_i.dat
Binary file not shown.
View
BIN .yardoc/objects/root.dat
Binary file not shown.
View
BIN .yardoc/proxy_types
Binary file not shown.
View
3 lib/guard/sass.rb
@@ -20,7 +20,7 @@ def build_sass(file)
content = File.new(file).read
# sass or scss?
type = file[-4..-1].to_sym
- engine = ::Sass::Engine.new(content, {:syntax => type})
+ engine = ::Sass::Engine.new(content, {:syntax => type, :load_paths => @options[:load_paths]})
engine.render
end
@@ -44,6 +44,7 @@ def get_output(file)
def start
@options[:output] = options[:output] || 'css'
+ @options[:load_paths] = Dir.glob('*')
end
# Build the files given

0 comments on commit b0fae98

Please sign in to comment.