[][src]Function askama_filters::filters::prefix

pub fn prefix<S, E>(s: S, prefix: E, expand_to: E) -> Result<String> where
    S: Display,
    E: AsRef<str>, 

Replaces a prefix at the beginning of a word with an expanded form. Useful in combination with other filters or as a shorthand.