Expand description
The Liquid templating language for Rust
$ cargo add liquid
§Example
let template = liquid::ParserBuilder::with_stdlib()
.build().unwrap()
.parse("Liquid! {{num | minus: 2}}").unwrap();
let mut globals = liquid::object!({
"num": 4f64
});
let output = template.render(&globals).unwrap();
assert_eq!(output, "Liquid! 2".to_string());
Modules§
- Liquid data model.
- Using partials
Macros§
- A value::Object literal.
Structs§
- Compiler error
- Type representing a Liquid object, payload of the
Value::Object
variant
Traits§
- Accessor for objects.
- Accessor for Values.
Functions§
- Convert a
T
intoliquid_core::model::Object
.