From 969b73029113e47d2223aa3c038ca7f64262b638 Mon Sep 17 00:00:00 2001 From: Anika Date: Wed, 10 Apr 2019 19:06:31 +0200 Subject: [PATCH] First flask files --- gruppenbildungsspiel.py | 6 ++++++ templates/index.html | 10 ++++++++++ 2 files changed, 16 insertions(+) create mode 100644 gruppenbildungsspiel.py create mode 100644 templates/index.html diff --git a/gruppenbildungsspiel.py b/gruppenbildungsspiel.py new file mode 100644 index 0000000..68c31c8 --- /dev/null +++ b/gruppenbildungsspiel.py @@ -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') diff --git a/templates/index.html b/templates/index.html new file mode 100644 index 0000000..7f68735 --- /dev/null +++ b/templates/index.html @@ -0,0 +1,10 @@ + + + + + {{ title }} + + +

{{ text }}

+ +