What is Twig Logic?


I’m defining Twig Logic to mean any and all manipulation inside a twig template.

Examples


Example 1a - simple

Example 1b - a little more complicated

Example 1c - even more complicated

Example 1d - an alternate approach

References and further reading