Function askama::filters::format

source ·
pub fn format()
Expand description

Formats arguments according to the specified format

The first argument to this filter must be a string literal (as in normal Rust). All arguments are passed through to the format!() macro by the Askama code generator.

{{ "{:?}{:?}" | format(value, other_value) }}

Compare with fmt.