Added template skeletons

This commit is contained in:
PartTimeHarmacist 2022-09-05 11:09:23 -05:00
parent 95e2a0ff99
commit 373890986b
No known key found for this signature in database
GPG Key ID: E1AF90A69B9C8150
2 changed files with 15 additions and 2 deletions

View File

@ -1,6 +1,6 @@
import logging import logging
from sys import stdout, stderr from sys import stdout, stderr
from flask import Flask, request from flask import Flask, request, render_template
app = Flask(__name__) app = Flask(__name__)
@ -19,7 +19,7 @@ log.addHandler(stderr_handler)
@app.route('/') @app.route('/')
def hello_world(): # put application's code here def hello_world(): # put application's code here
return "Welcome to the initial commit - there's nothing here right now..." return render_template('base.html', title="Hello, Spool")
@app.route('/oauth') @app.route('/oauth')

13
src/templates/base.html Normal file
View File

@ -0,0 +1,13 @@
<!doctype html>
<html>
<head>
{% block head %}
<title>{{ title|default('Spool') }}</title>
{% endblock head %}
</head>
<body>
{% block body %}
{{ content }}
{% endblock body %}
</body>
</html>