Function rsass::compile_scss_file
[−]
[src]
pub fn compile_scss_file(
file: &Path,
style: OutputStyle
) -> Result<Vec<u8>, Error>
Parse a file of scss data and write css in the given style.
Any @import
directives will be handled relative to the directory
part of file
.
Example
use rsass::{OutputStyle, compile_scss_file}; assert_eq!(compile_scss_file("tests/basic/14_imports/a.scss".as_ref(), OutputStyle::Compressed).unwrap(), b"div span{moo:goo}\n")