Django 模板

<html>
<head><title>Ordering notice</title></head>

<body>

<h1>Ordering notice</h1>

<p>Dear {{ person_name }},</p>

<p>Thanks for placing an order from {{ company }}. It's scheduled to
ship on {{ ship_date|date:"F j, Y" }}.</p>

<p>Here are the items you've ordered:</p>

<ul>
{% for item in item_list %}
<li>{{ item }}</li>
{% endfor %}
</ul>

{% if ordered_warranty %}
<p>Your warranty information will be included in the packaging.</p>
{% else %}
<p>You didn't order a warranty, so you're on your own when
the products inevitably stop working.</p>
{% endif %}

<p>Sincerely,<br />{{ company }}</p>

</body>
</html>

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • PLEASE READ THE FOLLOWING APPLE DEVELOPER PROGRAM LICENSE...
    念念不忘的阅读 14,594评论 5 6
  • rljs by sennchi Timeline of History Part One The Cognitiv...
    sennchi阅读 12,141评论 0 10
  • 1,用{{}}包围的是变量,如{{person_name}}, 2,用{%%}包围的是块标签,如{%if orde...
    续哥儿阅读 3,868评论 0 0
  • 婚后的爱情,像一个溺水的归人,拼命地向上游,想把头冒出水面,呼吸一口新鲜的空气。 爱情有百般滋味,我偏爱地选了...
    刘懋伟阅读 3,273评论 0 1
  • 今天的心情不好也不坏吧,总之就是越来越淡定了,所有的事情都是你以为的以为,没有想象中的那么好,也没有想象中的那么坏...
    王大太太阅读 1,761评论 0 0