First flask files

This commit is contained in:
Amma 2019-04-10 19:06:31 +02:00
parent c9268b180a
commit 969b730291
2 changed files with 16 additions and 0 deletions

6
gruppenbildungsspiel.py Normal file
View File

@ -0,0 +1,6 @@
from flask import Flask, render_template
app = Flask(__name__)
@app.route('/')
def index():
return render_template('index.html', title='Test', text='Hallo, Fooboar')

10
templates/index.html Normal file
View File

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>{{ title }}</title>
</head>
<body>
<p>{{ text }}</p>
</body>
</html>