Open andersaloof opened 4 years ago
Formating the following code:
{% set palette = palette ?? (entry is defined and entry.type.handle in ['frontpage'] ? 'white' : null) %}
Results in this:
{% set palette = palette ?? entry is defined and entry.type.handle in ['frontpage'] ? 'white' : null %}
This causes Twig to throw the following exception:
Twig Syntax Error – Twig\Error\SyntaxError The "defined" test only works with simple variables.
Formating the following code:
Results in this:
This causes Twig to throw the following exception: