How to escape Twig delimiters in a Twig template?

前端 未结 3 1419
不知归路
不知归路 2020-12-09 07:34

Twig uses the {{ }}, {% %}, {# #} delimiters.

But how can I display {{ }} in a Twig template? I\'m not talking ab

3条回答
  •  生来不讨喜
    2020-12-09 08:01

    {% block body %} 
     
        {% for temp in data %} 
         
        {% endfor %}
    
    {{temp.fname}} {{temp.lname}}
    {% endblock %}

提交回复
热议问题