lib/sprockets/sass/importer.rb in sprockets-sass-1.0.2 vs lib/sprockets/sass/importer.rb in sprockets-sass-1.0.3
- old
+ new
@@ -131,10 +131,11 @@
# Returns the string to be passed to the Sass engine. We use
# Sprockets to process the file, but we remove any Sass processors
# because we need to let the Sass::Engine handle that.
def evaluate(path)
- processors = context.environment.attributes_for(path).processors.dup
+ attributes = context.environment.attributes_for(path)
+ processors = context.environment.preprocessors(attributes.content_type) + attributes.engines.reverse
processors.delete_if { |processor| processor < Tilt::SassTemplate }
context.evaluate(path, :processors => processors)
end
end
end