First flask files
This commit is contained in:
parent
c9268b180a
commit
969b730291
6
gruppenbildungsspiel.py
Normal file
6
gruppenbildungsspiel.py
Normal 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
10
templates/index.html
Normal file
@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<title>{{ title }}</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>{{ text }}</p>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
x
Reference in New Issue
Block a user