FIX: Allow plugins to register importers

This commit is contained in:
Robin Ward 2018-01-19 16:24:19 -05:00
parent 2de1264213
commit b68799e081
1 changed files with 2 additions and 4 deletions

View File

@ -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