minijinja::tests

Function is_le

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

Test version of <=.

This is useful when combined with select.

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

By default aliased to <=.