Function lower

Source
pub fn lower(s: impl Display) -> Result<String, Error>
Expand description

Converts to lowercase

/// ```jinja
/// <div>{{ word|lower }}</div>
/// ```
#[derive(Template)]
#[template(ext = "html", in_doc = true)]
struct Example<'a> {
    word: &'a str,
}

assert_eq!(
    Example { word: "FOO" }.to_string(),
    "<div>foo</div>"
);

assert_eq!(
    Example { word: "FooBar" }.to_string(),
    "<div>foobar</div>"
);