We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 91f7509 commit b33702eCopy full SHA for b33702e
lib/sass/rails/importer.rb
@@ -10,7 +10,7 @@ module Globbing
10
GLOB = /(\A|\/)(\*|\*\*\/\*)\z/
11
12
def find_relative(name, base, options)
13
- if m = name.match(GLOB)
+ if options[:sprockets] && m = name.match(GLOB)
14
path = name.sub(m[0], "")
15
base = File.expand_path(path, File.dirname(base))
16
glob_imports(base, m[2], options)
@@ -84,7 +84,7 @@ def find(*args)
84
85
private
86
def process_erb_engine(engine)
87
- if engine && syntax = erb_extensions[engine.options[:syntax]]
+ if engine && engine.options[:sprockets] && syntax = erb_extensions[engine.options[:syntax]]
88
template = Tilt::ERBTemplate.new(engine.options[:filename])
89
contents = template.render(engine.options[:sprockets][:context], {})
90
0 commit comments