Skip to content
Browse files

Merge remote branch 'infinitewinter/master' into public/master

* infinitewinter/master:
  Added support for @import statements in sass.
  • Loading branch information...
2 parents 87146f4 + 8484aab commit 56b7bd54b07407258760e16ce47c5ec3c28ed788 Charles Jolley committed Jun 16, 2010
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/sproutcore/builders/sass.rb
View
3 lib/sproutcore/builders/sass.rb
@@ -32,7 +32,8 @@ def build(dst_path)
begin
content = readlines(entry.source_path)*''
- css = ::Sass::Engine.new(content, :syntax => @@sass_syntax).render
+ load_paths = [entry.source_path[0..entry.source_path.rindex('/')]]
+ css = ::Sass::Engine.new(content, :syntax => @@sass_syntax, :load_paths => load_paths).render
lines = []
css.each_line { |l| lines << rewrite_inline_code(l) }
writelines dst_path, lines

0 comments on commit 56b7bd5

Please sign in to comment.
Something went wrong with that request. Please try again.