mirror of
https://github.com/discourse/discourse.git
synced 2025-02-14 23:35:00 +00:00
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…
x
Reference in New Issue
Block a user