All Projects → andrew → libsass-rails

andrew / libsass-rails

Licence: other
[DEPRECATED] An experiment in rails project using libsass instead of ruby sass with the asset pipeline.

Programming Languages

ruby
36898 projects - #4 most used programming language
HTML
75241 projects
javascript
184084 projects - #8 most used programming language
CSS
56736 projects

Libsass Rails

Update: Use sassc-rails instead which works properly!

An experiment in rails project using libsass instead of ruby sass with the asset pipeline.

Milage may vary, only works on Mac right now (due to hardcoded binary)

Setup

git clone [email protected]:andrew/libsass-rails.git
cd libsass-rails
bundle install
rails s

Usage

It should work like a regular rails app, add Sass to application.scss and view at http://localhost:3000/assets/application.css

What's different?

The only app specific change is in the Gemfile, where we require sassc and a fork of sass-rails that uses it:

gem 'sassc', github: 'andrew/sassruby'
gem 'sass-rails', github: 'andrew/sass-rails'

This fork of sass-rails swaps out Sass::Engine for SassC::Engine which, in theory, have the same API.

Limitations

Libsass does not have all the features of the latest version of ruby sass, some features may not work.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].