Class: Spider::SassAppImporter

Inherits:
Sass::Importers::Filesystem
  • Object
show all
Defined in:
lib/spiderfw/templates/resources/sass.rb

Instance Method Summary collapse

Instance Method Details

#_find(dir, name, options) ⇒ Object



25
26
27
28
29
30
31
32
33
34
# File 'lib/spiderfw/templates/resources/sass.rb', line 25

def _find(dir, name, options)
    Spider.apps_by_path.each do |app_name, mod|
        if name.index(app_name) == 0 && File.directory?(File.join(dir, app_name))
            rel_path = name[app_name.length+1..-1]
            name = File.join(app_name, 'public', rel_path)
            return super(dir, name, options)
        end
    end
    return super
end