标签: twig
语法为{% import 'forms.html' as forms %}
{% import 'forms.html' as forms %}
其中,表单是您指定的文字名称
我需要在变量中输入名称:
{% set name='forms' %}然后{% import 'forms.html' as name %}
{% set name='forms' %}
{% import 'forms.html' as name %}
但它不起作用 有什么建议吗?