Class: Fuse::Document::Asset::StyleSheet::Sass

Inherits:
Fuse::Document::Asset::StyleSheet show all
Defined in:
lib/fuse/document/asset/style_sheet.rb

Constant Summary

Constants inherited from Fuse::Document::Asset::StyleSheet

EMBED_WITH, JOIN_WITH, MEDIA_PATTERN

Constants included from HasDependents

HasDependents::COMMENT_PATTERN, HasDependents::REQUIRE_PATTERN

Constants inherited from Fuse::Document::Asset

TYPES

Instance Attribute Summary

Attributes inherited from Fuse::Document::Asset

#path

Instance Method Summary collapse

Methods inherited from Fuse::Document::Asset::StyleSheet

#compress, #conditional, #conditional_signature, #media, #reference_with, #type

Methods included from HasDependents

#dependents

Methods inherited from Fuse::Document::Asset

[], #call, const_missing, #extension, #filter?, #filtered, for, #full_path, #initialize, #raw, #relative_path, #to_datauri, #type

Constructor Details

This class inherits a constructor from Fuse::Document::Asset

Instance Method Details

#filterObject



45
46
47
48
49
50
# File 'lib/fuse/document/asset/style_sheet.rb', line 45

def filter
  original = raw
  compiled = ::Sass.compile original, style: :expanded
  Fuse.log "SASS: Compiled #{path} from #{original.bytesize} bytes to #{compiled.bytesize} bytes", :success
  compiled
end