Use libsass
with Ruby!
This gem combines the speed of libsass
, the Sass C implementation, with the ease of use of the original Ruby Sass library.
Add this line to your application's Gemfile:
gem 'sassc'
And then execute:
bundle
Or install it yourself as:
gem install sassc
This library utilizes libsass
to allow you to compile SCSS or SASS syntax
to CSS. To compile, use a SassC::Engine
, e.g.:
SassC::Engine.new(sass, style: :compressed).render
Note: If you want to use this library with Rails/Sprockets, check out sassc-rails.
Additionally, you can use SassC::Sass2Scss
to convert Sass syntax to Scss syntax.
This gem is maintained by Ryan Boland and awesome contributors.
- 1.11.2
- 1.11.1
- 1.11.0
- 1.10.1
- 1.10.0
- Improved error messages
- Update to Libsass 3.3.6
- 1.9.0
- Support boolean script support
- 1.8.5
- Update to Libsass 3.3.4
- 1.8.4
- Update to Libsass 3.3.3
- 1.8.3
- 1.8.2
- Update to Libsass 3.3.2
- 1.8.1
- Update to Libsass 3.3.1
- 1.8.0
- Update to Libsass 3.3.0
- 1.8.0.pre2
- Fix bug with looking up gem_path
- 1.8.0.pre1
- 1.7.1
- Some updates to
Engine
API.
- Some updates to
- 1.7.0
- 1.6.0
- 1.5.1
- 2nd attempt at fixing compilation bug (issue #12)
- 1.5.0
- Add support for inline source maps
- Fix compilation bug (issue #12)
- 1.4.0
- Add support for line number comments
- 1.3.0
- Support Sass color custom function arguments
- Adds error handling for exceptions in custom functions
- Custom functions may have optional/default arguments
- Clone repo
- Install dependencies -
bundle install
- Run the tests -
bundle exec rake test
- Fork it ( https://github.com/sass/sassc-ruby/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - try to include tests - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request