Class: Webgen::ContentProcessor::Sass::FileSystemImporter
- Inherits:
-
Sass::Importers::Filesystem
- Object
- Sass::Importers::Filesystem
- Webgen::ContentProcessor::Sass::FileSystemImporter
- Defined in:
- lib/webgen/content_processor/sass.rb
Overview
Custom importer for Sass to load files from the file system but resolves absolute paths from the given root directory and not from the filesystem root!
Instance Method Summary collapse
Instance Method Details
#find_real_file(dir, name, options = {}) ⇒ Object
:nodoc:
17 18 19 20 21 22 23 24 25 |
# File 'lib/webgen/content_processor/sass.rb', line 17 def find_real_file(dir, name, = {}) #:nodoc: for (f,s) in possible_files(remove_root(name)) if full_path = Dir["#{dir}/#{f}"].first full_path.gsub!(REDUNDANT_DIRECTORY,File::SEPARATOR) return full_path, s end end nil end |