Sha256: bcee5843df365da3f6cc18091ed12214c22af873a13a278b296b30844ed5adee

Contents?: true

Size: 998 Bytes

Versions: 3

Compression:

Stored size: 998 Bytes

Contents

require "roger_sassc/version"

# The RogerSassc namespace
module RogerSassc
  # Loading default bower_components here,
  # just as a little reward for using the default
  # but you can overwrite or append any path you like
  DEFAULT_LOAD_PATHS = ["bower_components"]

  class << self
    attr_accessor :load_paths

    # Add one or more paths to the array,
    # that will be given to libsass
    # in general load paths are only required
    # once a file is hard or impossible to reach by a relative path
    def append_path(*paths)
      @load_paths.push(*(paths.flatten))
    end

    alias_method :append_paths, :append_path
  end
end

# Add some sensible paths, convention over configuration
RogerSassc.load_paths = RogerSassc::DEFAULT_LOAD_PATHS.dup

# Legacy Sass load_paths copy, this is mainly used in gems that
# supply assets such as bourbon and neat
RogerSassc.append_path(Sass.load_paths) if defined?(Sass.load_paths)

require "roger_sassc/middleware"
require "roger_sassc/processor"

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
roger_sassc-0.2.1 lib/roger_sassc.rb
roger_sassc-0.2.0 lib/roger_sassc.rb
roger_sassc-0.1.2 lib/roger_sassc.rb