Crate liquid[][src]

The Liquid templating language for Rust

http://liquidmarkup.org/

[dependencies]
liquid = "0.15"

Example

let template = liquid::ParserBuilder::with_liquid()
    .build()
    .parse("Liquid! {{num | minus: 2}}").unwrap();

let mut globals = liquid::Object::new();
globals.insert("num".to_owned(), liquid::Value::scalar(4f64));

let output = template.render(&globals).unwrap();
assert_eq!(output, "Liquid! 2".to_string());

Modules

compiler
filters
interpreter
tags

Structs

Error

Compiler error

Index
Parser
ParserBuilder
Scalar

A Liquid scalar value

Template

Enums

Value

An enum to represent different value types

Type Definitions

Array

Type representing a Liquid array, payload of the Value::Array variant

Date
Object

Type representing a Liquid object, payload of the Value::Object variant