[][src]Function grass::from_string

pub fn from_string(p: String, options: &Options<'_>) -> Result<String>

Compile CSS from a string

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(())
}