
bs.plugins.compass-asset-pipeline.2.9.1.source-code.sass-asset-pipeline-fs.rb Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of compass-asset-pipeline Show documentation
Show all versions of compass-asset-pipeline Show documentation
Provides SASS/Compass Compiling support for the Asset-Pipeline library.
# EXPIREMENTAL WORK ON FS REPLACEMENT
# NOT CURRENTLY IN USE
require 'sass' #We want to make sure sass is already loaded before we start monkey patching
require 'java'
Sass::Importers::Filesystem.class_eval do
def find(name, options)
result = _find(@root, name, options)
if result
Java::AssetPipelineSass::SassProcessor.onImport(result.options[:filename])
end
return result
end
def find_relative(name, base, options)
result = _find(File.dirname(base), name, options)
if result
Java::AssetPipelineSass::SassProcessor.onImport(result.options[:filename])
end
return result
end
end
© 2015 - 2025 Weber Informatics LLC | Privacy Policy