Started moving SFU over to Flask
This commit is contained in:
3
app/SFU.py
Normal file
3
app/SFU.py
Normal file
@@ -0,0 +1,3 @@
|
||||
from app import app
|
||||
|
||||
|
||||
7
app/__init__.py
Normal file
7
app/__init__.py
Normal file
@@ -0,0 +1,7 @@
|
||||
from flask import Flask
|
||||
|
||||
app = Flask(__name__)
|
||||
|
||||
from app import routes
|
||||
|
||||
|
||||
13
app/routes.py
Normal file
13
app/routes.py
Normal file
@@ -0,0 +1,13 @@
|
||||
from app import app
|
||||
from flask import render_template
|
||||
from main import loadClients
|
||||
|
||||
@app.route('/')
|
||||
@app.route('/index')
|
||||
|
||||
def index():
|
||||
ClientName = []
|
||||
|
||||
ClientName = loadClients()
|
||||
|
||||
return render_template('index.html', title='SFU', ClientName=ClientName)
|
||||
12
app/templates/index.html
Normal file
12
app/templates/index.html
Normal file
@@ -0,0 +1,12 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Title</title>
|
||||
</head>
|
||||
<body>
|
||||
{% for x in ClientName %}
|
||||
{{ ClientName }} <br>
|
||||
{% endfor %}
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user