Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

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

Closed
quinn opened this Issue · 5 comments

4 participants

@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?

@jfirebaugh

Looks like a duplicate of #94.

@quinn

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

@jfirebaugh

Go for it!

@frodsan

Closing here. dup of #139.

@frodsan frodsan closed this
@bricker

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.