Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


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

quinn opened this Issue · 5 comments

4 participants


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}$/}

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


Looks like a duplicate of #94.


ahh, thank you. If you're not working on a patch I can create one and submit it.


Go for it!


Closing here. dup of #139.

@frodsan frodsan closed this

For what it's worth, @quinn 's patch seems to have fixed this for me on Rails 3.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.