minijinja::filters

Function abs

Source
pub fn abs(value: Value) -> Result<Value, Error>
Expand description

Returns the absolute value of a number.

|a - b| = {{ (a - b)|abs }}
  -> |2 - 4| = 2