first experiments with rocket

This commit is contained in:
2019-12-29 15:00:59 +01:00
commit a1b8f5a1a1
9 changed files with 1436 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
<!DOCTYPE html>
<form action="/add" method="POST">
Name: <input type="text" name="name"><br>
Qty: <input type="number" step="1" min="0" name="quantity"><br>
Location: <input type="text" name="location"><br>
<button type="submit">Add</button>
</form>
<ul>
{% for record in records %}
<li>
{{ record.name }} x {{ record.quantity }} in {{ record.location }}
</li>
{% endfor %}
</ul>