0.01
The project is in a healthy, maintained state
An embedded sass shim for SassC.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
 Dependencies

Development

~> 5.16.0
~> 1.32.0
~> 0.6.0

Runtime

~> 2.0
 Project Readme

Embedded Sass Shim for SassC Ruby

build gem

Use sass-embedded with SassC Ruby!

This library shims sassc with the sass-embedded implementation.

It has been tested with:

Install

Add these lines to your application's Gemfile:

gem 'sassc', github: 'sass/sassc-ruby', ref: 'refs/pull/233/head'
gem 'sassc-embedded'

And then execute:

bundle

Or install it yourself as:

gem install sassc-embedded

Usage

This shim utilizes sass-embedded to allow you to compile SCSS or SASS syntax to CSS. To compile, use a SassC::Engine, e.g.:

require 'sassc-embedded'

SassC::Engine.new(sass, style: :compressed).render

See rubydoc.info/gems/sassc for full API documentation.

Behavioral Differences from SassC Ruby

  1. Option :style => :nested and :style => :compact behave as :style => :expanded.

  2. Option :precision is ignored.

  3. Option :line_comments is ignored.

See the dart-sass documentation for other differences.