Skip to content

Instantly share code, notes, and snippets.

@haraonline
Last active January 4, 2019 22:38
Show Gist options
  • Save haraonline/c5421ac0d0fee10d1706b44ad0edea5b to your computer and use it in GitHub Desktop.
Save haraonline/c5421ac0d0fee10d1706b44ad0edea5b to your computer and use it in GitHub Desktop.
<!-- HTML CODE FOR JINJA2: PART 1 -->
<!-- USE WITH THE PYTHON FILE PROVIDED -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Watchable</title>
</head>
<body>
<h1> Movies to Watch </h1>
<h2> This Collection Belongs to {{ name }} </h2>
<h3> movies: {{ movies }} </h3>
<h3> first: {{ movies[0] }} </h3>
<h3> slicing: {{ movies[1:4] }} </h3>
<hr>
<ul>
{% for item in movies %}
<li> the movie is : {{ item }} </li>
{% endfor %}
</ul>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment