-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathvertstudios.py
44 lines (34 loc) · 1.04 KB
/
vertstudios.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
# Vert studios website. Yay!
from settings import FLASK_ENV, app
from flask import (
request, g, abort, flash, redirect,
render_template, url_for
)
from contact.contact import contact_page
from blog.blog import blog
from blog.helpers import from_the_blog
from jinja2 import TemplateNotFound
app.register_blueprint(contact_page)
app.register_blueprint(blog)
#####################################################################
# Routes
#####################################################################
@app.route('/')
def home():
# Get HTML for the home page rss feed
rssFeed = from_the_blog()
return render_template("index.html", rssFeed=rssFeed)
@app.route('/work')
def work():
return render_template("work.html", title="Work")
@app.route('/services')
def services():
return render_template("services.html", title="Services")
@app.route('/about')
def about():
return render_template("about.html", title="About")
@app.route('/sitemap/')
def sitemap():
return render_template("sitemap.static")
if __name__ == "__main__":
app.run()