class Sass::Engine

Taken from github.com/chriseppstein/sass-css-importer/blob/master/lib/sass/css_importer/monkey_patches.rb

Public Class Methods

new(template, options={}) click to toggle source
# File lib/spark_engine/sass/engine.rb, line 9
def initialize(template, options={})
  initialize_without_yaml_importer(template, options)

  yaml_importer = self.options[:load_paths].find {|lp| lp.is_a?(SparkEngine::Importer) }

  unless yaml_importer
    root        = File.dirname(options[:filename] || ".")
    plugin_root = SparkEngine.plugin.stylesheets.base
    self.options[:load_paths] << SparkEngine::Importer.new(root)
    self.options[:load_paths] << SparkEngine::Importer.new(plugin_root)
  end
end

Public Instance Methods

initialize_without_yaml_importer(template, options={})
Alias for: new