Skip to content

Instantly share code, notes, and snippets.

@bcdejp
Created December 28, 2014 12:22
Show Gist options
  • Save bcdejp/c9b71b9b35708760d646 to your computer and use it in GitHub Desktop.
Save bcdejp/c9b71b9b35708760d646 to your computer and use it in GitHub Desktop.
jinja2のサンプル
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title>{{title}}</title>
</head>
<body>
{% for sample in sample_list %}
<h1>{{ sample.title }}</h1>
<p>
{{ sample.body|safe }}
</p>
{% endfor %}
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment