Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/redding/dassets-sass
Dassets engine to compile SASS/SCSS.
https://github.com/redding/dassets-sass
dassets engine sass scss
Last synced: about 9 hours ago
JSON representation
Dassets engine to compile SASS/SCSS.
- Host: GitHub
- URL: https://github.com/redding/dassets-sass
- Owner: redding
- License: mit
- Created: 2013-04-27T20:32:46.000Z (over 11 years ago)
- Default Branch: main
- Last Pushed: 2021-01-10T14:58:55.000Z (almost 4 years ago)
- Last Synced: 2024-10-31T13:11:46.427Z (6 days ago)
- Topics: dassets, engine, sass, scss
- Language: Ruby
- Homepage:
- Size: 28.3 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Dassets::Sass
Dassets [engine](https://github.com/redding/dassets#compiling) to compile dynamic asset filtes written with [SASS/SCSS](http://sass-lang.com/) using [libsass](https://github.com/sass/sassc-ruby).
## Usage
Register the engine:
```ruby
# in config/assets.rb
require "dassets"
require "dassets-sass"Dassets.configure do |c|
c.source "/path/to/assets") do |s|
# register for `scss` syntax
s.engine "scss", Dassets::Sass::Engine, syntax: Dassets::Sass::SCSS# register for `sass` syntax
s.engine "sass", Dassets::Sass::Engine, syntax: Dassets::Sass::SASS# by default Dassets::Sass::NESTED output style is used, but you can
# specify a custom style (http://sass-lang.com/documentation/file.SASS_REFERENCE.html#output_style)
s.engine "scss", Dassets::Sass::Engine, {
...
output_style: Dassets::Sass::COMPRESSED
}# by default `/path/to/assets` is in the load path, but
# you can specify additional custom load paths to use with `@import`s
s.engine "scss", Dassets::Sass::Engine, {
...
load_paths: ["/custom/load/path"]
}
end
end
```Put your `.scss` and `.sass` source files in your source path. Dassets will compile their content using Sass, switch their extension to `.css`, and write the output to the output path.
## Installation
Add this line to your application's Gemfile:
gem "dassets-sass"
And then execute:
$ bundle
Or install it yourself as:
$ gem install dassets-sass
## Contributing
1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Added some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request