[−][src]Crate grass
grass
An implementation of the Sass specification in pure rust.
Spec progress as of 2020-08-12:
Passing | Failing | Total |
---|---|---|
3387 | 1706 | 5093 |
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 |
|
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 |