Module: Sass::Importers

Defined in:
lib/sass/importers.rb,
lib/sass/importers/base.rb,
lib/sass/importers/filesystem.rb

Overview

Sass importers are in charge of taking paths passed to @import and finding the appropriate Sass code for those paths. By default, this code is always loaded from the filesystem, but importers could be added to load from a database or over HTTP.

Each importer is in charge of a single load path (or whatever the corresponding notion is for the backend). Importers can be placed in the :load_paths array alongside normal filesystem paths.

When resolving an @import, Sass will go through the load paths looking for an importer that successfully imports the path. Once one is found, the imported file is used.

User-created importers must inherit from Base.

Defined Under Namespace

Classes: Base, Filesystem