rocket_dyn_templates::minijinja::tests

Function is_startingwith

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

Checks if the value is starting with a string.

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