Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
[Twig] Accept an array of template in the render method #29808
I could be nice to expose this feature in the abstract controller. What do you think ?
it depends if you (ie the Symfony team) want to promote this practice or not... regarding what we do in the Grid component of PrestaShop (that initially relies on this nice feature), the impact on performances can be really big, so we manage to provide this a different way => https://github.com/PrestaShop/PrestaShop/blob/develop/src/PrestaShopBundle/Twig/Extension/GridExtension.php#L200
Also, outside of this scope, I've never met a use case for that when we already have so many ways to make templates dynamic, so I'm interested in your owns.