Run artifact

build/ReadingList/app_server/templates/reading_list.html

{% extends "base.html" %}
{% block content %}
<h1>Reading List</h1>

<form method="post" action="/books">
  <label for="title">Title</label>
  <input type="text" id="title" name="title">
  <label for="author">Author</label>
  <input type="text" id="author" name="author">
  <button type="submit">Add book</button>
</form>

{% if books %}
<ol>
  {% for book in books %}
  <li>
    <span class="title">{{ book.title }}</span>
    <span class="author">{{ book.author }}</span>
    <form method="post" action="/books/{{ book.id }}/delete">
      <button type="submit">Remove</button>
    </form>
  </li>
  {% endfor %}
</ol>
{% else %}
<p>Your reading list is empty. Add a book to get started.</p>
{% endif %}
{% endblock %}