[][src]Function grass::from_path

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

Compile CSS from a path

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

(grass does not currently allow files or paths that are not valid UTF-8)