class SassC::Rails::Importer::SassERBExtension

Public Instance Methods

import_for(full_path, parent_dir, options) click to toggle source
# File lib/sassc/rails/importer.rb, line 58
def import_for(full_path, parent_dir, options)
  template = Tilt::ERBTemplate.new(full_path)
  parsed_erb = template.render(options[:sprockets][:context], {})
  parsed_scss = SassC::Sass2Scss.convert(parsed_erb)
  SassC::Importer::Import.new(full_path, source: parsed_scss)
end
postfix() click to toggle source
# File lib/sassc/rails/importer.rb, line 54
def postfix
  ".sass.erb"
end