[][src]Trait liquid::compiler::FilterValue

pub trait FilterValue: FilterValueClone + Send + Sync + Debug {
    fn filter(&self, input: &Value, arguments: &[Value]) -> Result<Value, Error>;
}

A trait for creating custom tags. This is a simple type alias for a function.

This function will be called whenever the parser encounters a tag and returns a new Renderable based on its parameters. The received parameters specify the name of the tag, the argument Tokens passed to the tag and the global Language.

Required methods

fn filter(&self, input: &Value, arguments: &[Value]) -> Result<Value, Error>

Filter input based on arguments.

Loading content...

Implementors

impl FilterValue for BoxedValueFilter
[src]

Loading content...