Function rocket_dyn_templates::minijinja::filters::list

source ·
pub fn list(state: &State<'_, '_>, value: Value) -> Result<Value, Error>
Expand description

Converts the input value into a list.

If the value is already a list, then it’s returned unchanged. Applied to a map this returns the list of keys, applied to a string this returns the characters. If the value is undefined an empty list is returned.