Sha256: 46be08567871e5a9695e6a4fd4079a0ff93194ab2d75056b24f5d6ed423b7d46

Contents?: true

Size: 627 Bytes

Versions: 4

Compression:

Stored size: 627 Bytes

Contents

require "sprockets/sass/version"
require "sprockets/sass/sass_template"
require "sprockets/sass/scss_template"
require "sprockets/engines"

module Sprockets
  module Sass
    autoload :Importer, "sprockets/sass/importer"
    
    # Global configuration for `Sass::Engine` instances.
    def self.options
      @options ||= {}
    end
  end
  
  # Register the new templates
  register_engine ".sass", Sass::SassTemplate
  register_engine ".scss", Sass::ScssTemplate
  
  # Attempt to add the Sass Functions
  begin
    require "sass"
    require "sprockets/sass/functions"
  rescue LoadError
    # fail silently...
  end
end


Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
sprockets-sass-0.4.3 lib/sprockets/sass.rb
sprockets-sass-0.4.2 lib/sprockets/sass.rb
sprockets-sass-0.4.1 lib/sprockets/sass.rb
sprockets-sass-0.4.0 lib/sprockets/sass.rb