标签: jinja2
模板:
<rules> {%- for rule in rule.Obj %} <entry name="{{ rule.name }}"> {%- endfor %} {# Hardcoded Rule#} <entry name="Hardcoded-rule-1"> <entry name="Hardcoded-rule-2"> <rules>
最终结果没有获得Hardcoded-rule-1和2。如何在模板中添加硬编码块?