-
Notifications
You must be signed in to change notification settings - Fork 50
/
app.py
46 lines (32 loc) · 1.09 KB
/
app.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Peter Simeth's basic flask pretty youtube downloader (v1.3)
https://github.com/petersimeth/basic-flask-template
© MIT licensed, 2018-2023
"""
from flask import Flask, render_template
DEVELOPMENT_ENV = True
app = Flask(__name__)
app_data = {
"name": "Peter's Starter Template for a Flask Web App",
"description": "A basic Flask app using bootstrap for layout",
"author": "Peter Simeth",
"html_title": "Peter's Starter Template for a Flask Web App",
"project_name": "Starter Template",
"keywords": "flask, webapp, template, basic",
}
@app.route("/")
def index():
return render_template("index.html", app_data=app_data)
@app.route("/about")
def about():
return render_template("about.html", app_data=app_data)
@app.route("/service")
def service():
return render_template("service.html", app_data=app_data)
@app.route("/contact")
def contact():
return render_template("contact.html", app_data=app_data)
if __name__ == "__main__":
app.run(debug=DEVELOPMENT_ENV)