Parent
[>]
1//! Custom Askama filters. 2 3/// Returns `singular` if `count == 1`, otherwise `plural`. 4 11 12/// Returns the first 8 characters of `s`, or the whole string if shorter. 13/// 14/// Unlike a raw `s[..8]` slice, this never panics on short input, so it is 15/// safe to apply to SHAs and refs taken directly from request paths. 16 19 20/// Askama filter `{{ value|short }}`: the first 8 characters of the input. 21 22 25 26 27