Jinja2 default() Test
Example #1 Reference: Jinja Syntax: default(value, default_value=u'', boolean=False) Example #1 If the value is undefined it will return the passed default value, otherwise the value of the variable: {{ my_variable|default('my_variable is not defined') }} This will output the value of my_variable if the variable was defined, otherwise ...