Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

symfony Project Blog:
Simpler Macros in Twig Templates
Jun 21, 2019 @ 19:30:01

Macros are one of the most important features of the Twig template language to avoid repetitive contents. In Twig 2.11, usage of macros was simplified and other features were added to help you work with macros.

Automatic macro import¶ Macros are similar to PHP functions because you can pass...

tagged:

Link: https://symfony.com/blog/simpler-macros-in-twig-templates?utm_source=Symfony%20Blog%20Feed&utm_medium=feed


Trending Topics: