[][src]Crate grass

grass

An implementation of the Sass specification in pure rust.

Spec progress as of 2020-08-12:

PassingFailingTotal
338717065093

Use as library

fn main() -> Result<(), Box<grass::Error>> {
    let sass = grass::from_string("a { b { color: &; } }".to_string(), &grass::Options::default())?;
    assert_eq!(sass, "a b {\n  color: a b;\n}\n");
    Ok(())
}

Use as binary

cargo install grass
grass input.scss

Structs

Error

SassErrors can be either a structured error specific to grass or an io::Error.

Options

Configuration for Sass compilation

Enums

OutputStyle

Functions

from_path

Compile CSS from a path

from_string

Compile CSS from a string

Type Definitions

Result