rocket_dyn_templates::minijinja::filters

Function default

Source
pub fn default(value: Value, other: Option<Value>) -> Value
Expand description

If the value is undefined it will return the passed default value, otherwise the value of the variable:

<p>{{ my_variable|default("my_variable was not defined") }}</p>