def glob_imports(glob, base_pathname, options)
contents = ""
each_globbed_file(glob, base_pathname.dirname, options) do |filename|
if File.directory?(filename)
context.depend_on(filename)
elsif context.asset_requirable?(filename)
context.depend_on(filename)
contents << "@import #{Pathname.new(filename).relative_path_from(base_pathname.dirname).to_s.inspect};\n"
end
end
return nil if contents.empty?
Sass::Engine.new(contents, options.merge(
:filename => base_pathname.to_s,
:importer => self,
:syntax => :scss
))
end