Sha256: 680084e4017c38eae17318f6ea42cf59d66f3101e26084ea5365df176c1fe27d

Contents?: true

Size: 519 Bytes

Versions: 1

Compression:

Stored size: 519 Bytes

Contents

# encoding: utf-8

class ::Sass::Importers::Filesystem

  alias_method :_orig_find, :_find

  def _find(dir, name, options)
    # Find filename
    full_filename, syntax = ::Sass::Util.destructure(find_real_file(dir, name, options))
    return nil if full_filename.nil?

    # Create dependency
    filter = options[:nanoc_current_filter]
    item = filter.imported_filename_to_item(full_filename)
    filter.depend_on([ item ]) unless item.nil?

    # Call original _find
    _orig_find(dir, name, options)
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
nanoc-3.6.7 lib/nanoc/filters/sass/sass_filesystem_importer.rb