rocket_dyn_templates::minijinja::tests

Function is_endingwith

Source
pub fn is_endingwith(v: Cow<'_, str>, other: Cow<'_, str>) -> bool
Expand description

Checks if the value is ending with a string.

{{ "foobar" is endingwith "bar" }} -> true
{{ "foobar" is endingwith "foo" }} -> false