[−][src]Crate liquid
The Liquid templating language for Rust
http://liquidmarkup.org/
[dependencies]
liquid = "0.18"
Example
let template = liquid::ParserBuilder::with_liquid() .build().unwrap() .parse("Liquid! {{num | minus: 2}}").unwrap(); let mut globals = liquid::value::Object::new(); globals.insert("num".into(), liquid::value::Value::scalar(4f64)); let output = template.render(&globals).unwrap(); assert_eq!(output, "Liquid! 2".to_string());
Modules
| compiler | |
| error | |
| filters | |
| interpreter | |
| partials | |
| tags | |
| value |
Structs
| Error | Compiler error |
| Parser | |
| ParserBuilder | |
| Template |
Traits
| ValueStore | Immutable view into a template's global variables. |
Type Definitions
| Partials | Storage for partial-templates. |