[−][src]Crate grass
grass
An implementation of the sass specification in pure rust.
All functionality is currently exposed through StyleSheet
.
Spec progress as of 2020-04-21:
Passing | Failing | Total |
---|---|---|
2150 | 2943 | 5093 |
Use as library
use grass::{SassResult, StyleSheet}; fn main() -> SassResult<()> { let sass = StyleSheet::new("a { b { color: &; } }".to_string())?; assert_eq!(sass, "a b {\n color: a b;\n}\n"); Ok(()) }
Use as binary
cargo install grass
grass input.scss
Structs
SassError | |
StyleSheet | Represents a parsed SASS stylesheet with nesting |
Type Definitions
SassResult |