Sha256: dc05908d7d3024b64bb667bd92251f49bef86966c9454f75f75c87fe97431c2c
Contents?: true
Size: 798 Bytes
Versions: 1
Compression:
Stored size: 798 Bytes
Contents
# encoding: utf-8 module Nanoc::Filters class Sass # Essentially the `Sass::Importers::Filesystem` but registering each # import file path. class SassFilesystemImporter < ::Sass::Importers::Filesystem private def _find(dir, name, options) full_filename, syntax = ::Sass::Util.destructure(find_real_file(dir, name, options)) return unless full_filename && File.readable?(full_filename) filter = options[:nanoc_current_filter] item = filter.imported_filename_to_item(full_filename) filter.depend_on([ item ]) unless item.nil? options[:syntax] = syntax options[:filename] = full_filename options[:importer] = self ::Sass::Engine.new(File.read(full_filename), options) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
nanoc-3.6.6 | lib/nanoc/filters/sass/sass_filesystem_importer.rb |