Module: Compass::ImportOnce::Engine

### Home Classes Methods

### In Files

- lib/compass/import-once/engine.rb

### Methods

- #render
- #render_with_sourcemap
- #to_css
- #with_import_scope

### Class/Module Index

Quicksearch

- Compass
- Compass::ImportOnce
- Compass::ImportOnce::Engine
- Compass::ImportOnce::Importer
- Sass
- Sass::Engine

No matching classes.

# Compass::ImportOnce::Engine

All sass engines will be extended with this module to manage the lifecycle around each

### Public Instance Methods

render() click to toggle source

    # File lib/compass/import-once/engine.rb, line 15
    def render
      with_import_scope(options[:css_filename]) do
        super
      end
    end

render_with_sourcemap(sourcemap_uri) click to toggle source

    # File lib/compass/import-once/engine.rb, line 21
    def render_with_sourcemap(sourcemap_uri)
      with_import_scope(options[:css_filename]) do
        super
      end
    end

to_css() click to toggle source

    # File lib/compass/import-once/engine.rb, line 9
    def to_css
      with_import_scope(options[:css_filename]) do
        super
      end
    end

with_import_scope(css_filename) click to toggle source

    # File lib/compass/import-once/engine.rb, line 27
    def with_import_scope(css_filename)
      Compass::ImportOnce.import_tracker[css_filename] = Set.new
      yield
    ensure
      Compass::ImportOnce.import_tracker.delete(css_filename)
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.