Module: SassC

Defined in:
lib/sassc.rb,
lib/sassc/error.rb,
lib/sassc/engine.rb,
lib/sassc/native.rb,
lib/sassc/script.rb,
lib/sassc/version.rb,
lib/sassc/importer.rb,
lib/sassc/dependency.rb,
lib/sassc/sass_2_scss.rb,
lib/sassc/import_handler.rb,
lib/sassc/script/functions.rb,
lib/sassc/functions_handler.rb,
lib/sassc/native/sass_value.rb,
lib/sassc/native/string_list.rb,
lib/sassc/native/sass2scss_api.rb,
lib/sassc/native/sass_input_style.rb,
lib/sassc/native/sass_output_style.rb,
lib/sassc/native/native_context_api.rb,
lib/sassc/native/native_functions_api.rb,
lib/sassc/script/value_conversion/map.rb,
lib/sassc/script/value_conversion/base.rb,
lib/sassc/script/value_conversion/bool.rb,
lib/sassc/script/value_conversion/list.rb,
lib/sassc/script/value_conversion/color.rb,
lib/sassc/script/value_conversion/number.rb,
lib/sassc/script/value_conversion/string.rb

Defined Under Namespace

Modules: Native, Script, Util Classes: BaseError, Dependency, Engine, FunctionsHandler, ImportHandler, Importer, InvalidStyleError, NotRenderedError, Sass2Scss, SyntaxError, UnsupportedValue

Constant Summary collapse

VERSION =
"2.4.0"

Class Method Summary collapse

Class Method Details

.load_pathsArray<String, Pathname, Sass::Importers::Base>

The global load paths for Sass files. This is meant for plugins and libraries to register the paths to their Sass stylesheets to that they may be ‘@imported`. This load path is used by every instance of Sass::Engine. They are lower-precedence than any load paths passed in via the `:load_paths` option.

If the ‘SASS_PATH` environment variable is set, the initial value of `load_paths` will be initialized based on that. The variable should be a colon-separated list of path names (semicolon-separated on Windows).

Note that files on the global load path are never compiled to CSS themselves, even if they aren’t partials. They exist only to be imported.

Examples:

SassC.load_paths << File.dirname(__FILE__ + '/sass')

Returns:

  • (Array<String, Pathname, Sass::Importers::Base>)


21
22
23
24
25
26
27
# File 'lib/sassc.rb', line 21

def self.load_paths
  @load_paths ||= if ENV['SASS_PATH']
                    ENV['SASS_PATH'].split(SassC::Util.windows? ? ';' : ':')
                  else
                    []
                  end
end