askama::filters

Function truncate

Source
pub fn truncate<T: Display>(s: T, len: usize) -> Result<String>
Expand description

Limit string length, appends ‘…’ if truncated