minijinja::tests

Function is_eq

Source
pub fn is_eq(value: &Value, other: &Value) -> bool
Expand description

Test version of ==.

This is useful when combined with select.

{{ 1 is eq 1 }} -> true
{{ [1, 2, 3]|select("==", 1) }} => [1]

By default aliased to equalto and ==.