Open zhangjun opened 1 year ago
http://docs.jinkan.org/docs/jinja2/templates.html https://wsgzao.github.io/post/jinja/
{% for item in seq %} <li>{{ item }}</li> {% endfor %}
{{ ... }} 表达式的结果打印到模板上 {# … #} 注释
{{ foo.bar }} {{ foo['bar'] }}
{% if kenny.sick %} Kenny is sick. {% elif kenny.dead %} You killed Kenny! You bastard!!! {% else %} Kenny looks okay --- so far {% endif %}
http://docs.jinkan.org/docs/jinja2/templates.html https://wsgzao.github.io/post/jinja/
{{ ... }} 表达式的结果打印到模板上 {# … #} 注释