Add Flask webapp draft

This commit is contained in:
2020-01-08 05:51:10 +01:00
parent b7e7c3400d
commit 712c84b358
9 changed files with 81 additions and 24 deletions

View File

@@ -0,0 +1,14 @@
<html>
<head>
{% if title %}
<title>{{ title }} - IGDB</title>
{% else %}
<title>Welcome to IGDB</title>
{% endif %}
</head>
<body>
<div>IGDB: <a href="/index">Home</a></div>
<hr>
{% block content %}{% endblock %}
</body>
</html>

View File

@@ -0,0 +1,8 @@
{% extends "base.html" %}
{% block content %}
<h1>Hi, {{ user.username }}!</h1>
{% for post in posts %}
<div><p>{{ post.author.username }} says: <b>{{ post.body }}</b></p></div>
{% endfor %}
{% endblock %}