Skip to content
Snippets Groups Projects
Commit 2316c8c7 authored by Fabio Maschi's avatar Fabio Maschi
Browse files

fix render_template path

parent 5c63d5da
No related branches found
No related tags found
No related merge requests found
......@@ -28,7 +28,7 @@ def index():
@app.route('/<page>')
def pages(page):
return render_template(str(Path('pages') / (page.lower() + '.html')))
return render_template(str(Path('pages')) + '/' + page.lower() + '.html')
# Main Function, Runs at http://0.0.0.0:8080
if __name__ == "__main__":
......
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