Permalink
Browse files

Added support for @import statements in sass.

  • Loading branch information...
1 parent b213b4f commit 8484aab3db3140ab8e77796238658a2a42720e4c @LogicWolfe LogicWolfe committed Jun 10, 2010
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/sproutcore/builders/sass.rb
@@ -32,7 +32,8 @@ def build(dst_path, sass_syntax=:sass)
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 8484aab

Please sign in to comment.