Skip to content
Snippets Groups Projects
Commit 0233776a authored by HauErn Lien's avatar HauErn Lien
Browse files

Update file app.py

parent f91dcd3c
No related branches found
No related tags found
No related merge requests found
......@@ -26,6 +26,10 @@ def serve():
def home():
return render_template('/pages/home.html')
@app.route('/home')
def h():
return render_template('/pages/home.html')
@app.route('/<page>')
def pages(page):
return render_template(str(Path('pages')) + '/' + page.lower() + '.html')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment