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
|
||||
include GlobalPath
|
||||
|
||||
@special_imports = {}
|
||||
|
||||
def self.special_imports
|
||||
@special_imports
|
||||
@special_imports ||= {}
|
||||
end
|
||||
|
||||
def self.register_import(name, &blk)
|
||||
@special_imports[name] = blk
|
||||
special_imports[name] = blk
|
||||
end
|
||||
|
||||
register_import "theme_field" do
|
||||
|
|
Loading…
Reference in New Issue