Function grass::from_path

source ·
pub fn from_path<P: AsRef<Path>>(p: P, options: &Options<'_>) -> Result<String>
Expand description

Compile CSS from a path

n.b. grass does not currently support files or paths that are not valid UTF-8

fn main() -> Result<(), Box<grass::Error>> {
    let sass = grass::from_path("input.scss", &grass::Options::default())?;
    Ok(())
}