-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwedding.py
64 lines (49 loc) · 1.49 KB
/
wedding.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
from flask import Flask
from flask import render_template
app = Flask(__name__, static_folder='media')
app.debug = True
@app.route("/")
def splash():
return render_template("splash.html")
@app.route("/welcome")
def welcome():
default = '/work-in-progress'
menuitems = [
{'title': 'OUR STORY', 'target': '/romance'},
{'title': 'OUR PROPOSAL', 'target': '/proposal'},
{'title': 'SHEDULE of EVENTS', 'target': '/schedule'},
{'title': 'ACCOMODATIONS', 'target': '/hotel'},
{'title': 'TRAVEL', 'target': '/travel'},
{'title': 'REGISTRY', 'target':
'/work-in-progress'},
]
return render_template("welcome.html", menuitems=menuitems)
@app.route("/details/<what>")
def details(what):
return render_template("%s-details.html" % what)
@app.route("/schedule")
def events():
return render_template("events.html")
@app.route("/travel")
def travel():
return render_template("travel.html")
@app.route("/hotel")
def hotel():
return render_template("hotel.html")
@app.route("/romance")
def romance():
return render_template("romance.html")
@app.route("/proposal")
def proposal():
return render_template("proposal.html")
@app.route("/work-in-progress")
def wip():
return render_template("construction.html")
@app.route("/about")
def about():
return render_template("about.html")
@app.route("/robots.txt")
def robots():
return render_template("robots.txt")
if __name__ == "__main__":
app.run(host="0.0.0.0")