Sha256: 7002869088141b1578f85f896c32eff3828d9f166d39112eca7cf8e5991d9e0d

Contents?: true

Size: 802 Bytes

Versions: 2

Compression:

Stored size: 802 Bytes

Contents

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

module Sprockets
  module Sass
    autoload :CacheStore, 'sprockets/sass/cache_store'
    autoload :Compressor, 'sprockets/sass/compressor'
    autoload :Importer,   'sprockets/sass/importer'
    
    class << self
      # Global configuration for `Sass::Engine` instances.
      attr_accessor :options
      
      # When false, the asset path helpers provided by
      # sprockets-helpers will not be added as Sass functions.
      # `true` by default.
      attr_accessor :add_sass_functions
    end
    
    @options = {}
    @add_sass_functions = true
  end
  
  register_engine '.sass', Sass::SassTemplate
  register_engine '.scss', Sass::ScssTemplate
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sprockets-sass-0.9.0 lib/sprockets/sass.rb
sprockets-sass-0.8.0 lib/sprockets/sass.rb