Class: SassC::Rails::Importer::ERBExtension
- Defined in:
- lib/sassc/rails/importer.rb
Instance Attribute Summary
Attributes inherited from Extension
Instance Method Summary collapse
Methods inherited from Extension
Constructor Details
This class inherits a constructor from SassC::Rails::Importer::Extension
Instance Method Details
#import_for(original_path, parent_path, full_path, options) ⇒ Object
66 67 68 69 70 |
# File 'lib/sassc/rails/importer.rb', line 66 def import_for(original_path, parent_path, full_path, ) template = Tilt::ERBTemplate.new(full_path) parsed_erb = template.render([:sprockets][:context], {}) SassC::Importer::Import.new(full_path, source: parsed_erb) end |