default_if_empty
x | default_if_empty(value=)Go’s default: value when the input is undefined, none, 0, “”, or an empty array or map. false counts as set.
Arguments#
| Argument | Type | Required |
|---|---|---|
value | any | yes |
Details#
- Kind: Filter, implemented by fugo.
- Available in: every kind of template: layouts, partials, shortcodes and render hooks.
- Output: escaped like any value, unless marked
safe.