Function compile_file
Source pub fn compile_file<P: AsRef<Path>>(
path: P,
options: Options,
) -> Result<String, String>
Expand description
Takes a file path and compiles it with the options given
7pub fn main() {
8 let mut args = std::env::args();
9 let _ = args.next();
10 let file = args.next().expect("Please pass in a file name");
11 println!("Compiling sass file: `{}`.", file);
12 println!("> Default:\n{}", compile_file(&file, Options::default()).unwrap());
13}