可以理解为只有变量、标签,在变量输出时使用过滤器,DTL的注释归属于标签变量普通变量 {{ name }} 列表变量通过下标取值 {{ name_group.1 }} 字典变量/对象变量 {{ user.name }} 模版标签for循环 {% for user in user_group %} {{ user.name }}{% endfor %} 过滤器 {{ name | upper }} 注释 {% comment %} DTL的多行注释{% endcomment %}