template improved, using multiple .py files now
This commit is contained in:
6
app.py
6
app.py
@@ -1,11 +1,11 @@
|
||||
#!/usr/bin/python3
|
||||
|
||||
from ose import *
|
||||
from main import *
|
||||
from flask import Flask, render_template
|
||||
|
||||
app = Flask(__name__)
|
||||
|
||||
@app.route('/')
|
||||
def index():
|
||||
htmlBody = returnSheets('test')
|
||||
return render_template("sheet.html", htmlBody=htmlBody)
|
||||
sheets = returnSheets('test')
|
||||
return render_template("sheet.html", sheets=sheets)
|
||||
|
||||
Reference in New Issue
Block a user