Function askama::filters::truncate

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

Limit string length, appends ‘…’ if truncated