docs icon indicating copy to clipboard operation
docs copied to clipboard

No mention of 'default' filter on https://docs.bolt.cm/4.0/twig-components/filters

Open ghost opened this issue 4 years ago • 0 comments

This page explains many Twig filters but doesn't mention the default filter.

The official Twig documentation page at https://twig.symfony.com/doc/3.x/filters/default.html is very helpful but it doesn't explain how an empty or missing parameter is treated, as in these constructs that I've seen in Bolt themes: {% if record|default() %} or {% if record|default %}.

So it would be good to include multiple examples, including the above.

ghost avatar Jun 07 '21 08:06 ghost