Skip to content

@import file with .erb doesn't work #119

@quinn

Description

@quinn

Hi, if I try to import a file:

@import 'scss_template';

and I have a file called scss_template.css.scss.erb it does not pre-process through erb. This change seems to fix it for me:

class Sass::Rails::Importer
  def sass_file? filename
    filename = filename.to_s
    SASS_EXTENSIONS.keys.any?{|ext| filename.match /#{ext}$/}
  end
end

Is this a bug or am I doing something else wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions