Function rocket_dyn_templates::minijinja::filters::first

source ยท
pub fn first(value: Value) -> Result<Value, Error>
Expand description

Returns the first item from an iterable.

If the list is empty undefined is returned.

<dl>
  <dt>primary email
  <dd>{{ user.email_addresses|first|default('no user') }}
</dl>