Compass is great, but sometimes we need to have common framework code in one (global) location with local overrides in the app. This addition adds built-in support for loading SASS/SCSS files from multiple locations external to the "source" directory and even the Middleman app root. Example usage: # in config.rb set :sass_assets_path, [ "#{root}/assets/sass/", "~/.sass-repo/"] Using symlinks or copying files to the Middleman project can get messy quickly. This fix reduces some of those issues.
17 lines
284 B
Sass
17 lines
284 B
Sass
|
|
red
|
|
color: green
|
|
|
|
/* imports below
|
|
|
|
// SCSS with extension
|
|
@import "_shared-asset.scss"
|
|
|
|
// without extension
|
|
@import "shared-asset"
|
|
|
|
// imported from outside of local 'assets/' directory
|
|
@import "_partial.sass"
|
|
|
|
/* Works with shared SASS assets from external source directory */
|