forked from petersimeth/basic-flask-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.py
More file actions
41 lines (27 loc) · 980 Bytes
/
app.py
File metadata and controls
41 lines (27 loc) · 980 Bytes
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
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
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)