Function grass::from_path

source ยท
pub fn from_path<P>(
    p: P,
    options: &Options<'_>
) -> Result<String, Box<SassError>>
where P: AsRef<Path>,
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 css = grass::from_path("input.scss", &grass::Options::default())?;
    Ok(())
}