Answers for "twig all variables"

2

print all variables twig

<ol>
  {% for key, value in _context  %}
    <li>{{ key }}</li>
  {% endfor %}
</ol>
Posted by: Guest on January-04-2021
0

twig set variable

{% set foo = 'bar' %}
Posted by: Guest on May-14-2021

Browse Popular Code Answers by Language