module 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
Calls superclass method
# 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
Calls superclass method
# 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
Calls superclass method
# 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