Function askama::filters::fmt

source ·
pub fn fmt()
Expand description

Formats arguments according to the specified format

The second argument to this filter must be a string literal (as in normal Rust). The two arguments are passed through to the format!() macro by the Askama code generator, but the order is swapped to support filter composition.

{{ value | fmt("{:?}") }}

Compare with format.