You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: