Workshop: Writing custom Twig extensions
The Twig template engine allows to register custom tags, filters, tests, operators, global variables and functions. This way you can add your own features to Twig and move often used code into a reusable class.You will learn how to do that, what the difference between these language constructs is, and get to know the internal workings of Twig.
Slides
Code
github.com/liip-forks/symfony-standard/tree/workshop-twig-extensions
Solutions for Exercises
github.com/liip-forks/symfony-standard/pull/6