sassc-ruby

Use libsass with Ruby!

MIT License

Downloads
149.2M
Stars
365
Committers
38

SassC Build Status Gem Version

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.

libsass Version

3.6.1

Installation

Add this line to your application's Gemfile:

gem 'sassc'

And then execute:

bundle

Or install it yourself as:

gem install sassc

Usage

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.

Credits

This gem is maintained by Ryan Boland and awesome contributors.

Changelog

See CHANGELOG.md.

Contributing

Project Setup

  1. Clone repo
  2. Install dependencies - bundle install
  3. Run the tests - bundle exec rake test

Code Changes

  1. Fork it ( https://github.com/sass/sassc-ruby/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature') - try to include tests
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request
Package Rankings
Top 6.39% on Proxy.golang.org
Top 9.71% on Alpine-edge
Top 0.95% on Rubygems.org
Top 10.36% on Alpine-v3.15
Top 5.53% on Alpine-v3.18
Top 11.04% on Alpine-v3.16
Top 12.0% on Alpine-v3.17
Top 26.08% on Conda-forge.org
Badges
Extracted from project README
Build Status Gem Version