Sass is now written in Dart! So this project is no longer needed. However, it can still be useful as an example of how to use C extensions in Dart.
A Dart VM Native Extension for libsass.
This package provides Dart language bindings for the libsass library, the C version of the popular stylesheet preprocessor, Sass.
Because this library contains a Dart VM Native Extension, you will need to compile the extension before using the library. Currently, the build script only supports Linux and Mac (untested):
git clone https://github.com/oddrationale/dart_libsass.git
cd dart_libsass
pub get
dart tool/build.dart
This script will pull the libsass submodule, compile libsass, and compile the extenstion. Support for Windows is coming soon!
This package also provides a sassc
compatible executable:
dart bin/sassd.dart input.scss output.css