mirror of
https://github.com/PartTimeHarmacist/spool.git
synced 2025-07-18 07:57:19 +00:00
Added template skeletons
This commit is contained in:
parent
95e2a0ff99
commit
373890986b
@ -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
13
src/templates/base.html
Normal 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>
|
Loading…
x
Reference in New Issue
Block a user