RogerSassc
Sass compilation based on sassc-ruby
Installation
Add this line to your application's Gemfile:
gem 'roger_sassc'
And then execute:
$ bundle
Usage
Add the following lines to your Mockupfile
Middleware
mockup.serve do |s|
s.use(RogerSassc::Middleware)
end
Several options can be supplied, as can be seen in middleware.rb
Release
mockup.release do |r|
r.use(:sassc)
end
Several options can be supplied, as can be seen in processor.rb
Load path
When working with files that are hard to reach with a relative path, load_paths can help out to ensure cleanness of otherwise long paths.
# Mockupfile
RogerSassc.append_path "plugins"
Example:
// Without append_path
import '../../../../plugins/my-awesome-plugin/main';
// Say we add global to the load_path as done above
import 'my-awesome-plugin/main';
Notes
The wrapper around libsass does not support ruby < 2.0.0.
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Run the tests (
rake
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request