liquid-rust

Liquid templating for Rust

Usage

To include liquid in your project add the following to your Cargo.toml:

toml [dependencies] liquid = "0.3"

Now you can use the crate in your code rust extern crate liquid; Example: ```rust let mut text = String::new(); File::open("./tests/simple/template.txt").unwrap().readtostring(&mut text); let mut options : LiquidOptions = Default::default(); let template = parse(&text, &mut options).unwrap();

let mut data = Context::new(); data.setval("num", Value::Num(5f32)); data.setval("numTwo", Value::Num(6f32));

let output = template.render(&mut data); ```

Plugins

Cache block ( File and Redis ) : https://github.com/FerarDuanSednan/liquid-rust-cache

TODO

Standard Filters