Flask-Workshop/templates/starter.html

15 lines
477 B
HTML
Raw Permalink Normal View History

2020-11-22 13:41:09 +00:00
<html>
<head>
<title>Choose your starter:</title>
</head>
<body>
{% if choice == None %}
Choose your starter:
<p><a href="{{ url_for('starter', choice='Bulbasaur') }}">Bulbasaur</a></p>
<p><a href="{{ url_for('starter', choice='Charmander') }}">Charmander</a></p>
<p><a href="{{ url_for('starter', choice='Squirtle') }}">Squirtle</a></p>
{% else %}
You chose {{ choice }}!
{% endif %}
</body>
</html>