Function rsass::compile_scss
[−]
[src]
pub fn compile_scss(input: &[u8], style: OutputStyle) -> Result<Vec<u8>, Error>
Parse scss data from a buffer and write css in the given style.
Example
use rsass::{OutputStyle, compile_scss}; assert_eq!(compile_scss(b"foo {\n\ bar {\n\ baz:value;\n\ }\n\ }", OutputStyle::Compressed).unwrap(), b"foo bar{baz:value}\n")