Crate rsass [−] [src]
Sass reimplemented in rust with nom (very early stage).
The "r" in the name might stand for the Rust programming language, or for my name Rasmus.
Example
use rsass::{OutputStyle, compile_scss_file}; let sass = "tests/basic/14_imports/a.scss".as_ref(); let css = compile_scss_file(sass, OutputStyle::Compressed); assert_eq!(css, Ok("div span{moo:goo}\n".into()))
Structs
FileContext | |
MixinDeclaration |
Enums
OutputStyle |
Selected target format. Only formats that are variants of this type are supported by rsass. |
SassItem |
Every sass file is a sequence of sass items. Scoping items contains further sequences of items. |
Functions
compile_scss |
Parse scss data and write css in the given style. |
compile_scss_file |
Parse a file of scss data and write css in the given style. |
parse_scss_file |