FIX: Allow plugins to register importers
This commit is contained in:
parent
2de1264213
commit
b68799e081
|
@ -5,14 +5,12 @@ module Stylesheet
|
||||||
class Importer < SassC::Importer
|
class Importer < SassC::Importer
|
||||||
include GlobalPath
|
include GlobalPath
|
||||||
|
|
||||||
@special_imports = {}
|
|
||||||
|
|
||||||
def self.special_imports
|
def self.special_imports
|
||||||
@special_imports
|
@special_imports ||= {}
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.register_import(name, &blk)
|
def self.register_import(name, &blk)
|
||||||
@special_imports[name] = blk
|
special_imports[name] = blk
|
||||||
end
|
end
|
||||||
|
|
||||||
register_import "theme_field" do
|
register_import "theme_field" do
|
||||||
|
|
Loading…
Reference in New Issue