php - Using a Twig variable inside the 'use' tag -



php - Using a Twig variable inside the 'use' tag -

i want dynamically utilize twig template, reason can't work.

when add together line, page crashes:

{% utilize current_page %}

current_page set "birthday.twig", exists.

as twig documentation states:

because utilize statements resolved independently of context passed template, template reference cannot expression.

so unfortunately not possible have variable {% utilize xyz %} statement.

however, can include using variable. see http://twig.sensiolabs.org/doc/recipes.html

php twig

Comments

Popular posts from this blog

maven fortify plugin : Unable to load build session with ID XXXXX .. See log file for more details -

c# - Primavera WebServices does not return any data -

android - Display emoji panel with genymotion - keyboard/touch input? -