diff --git a/site/app.py b/site/app.py index 2196b28..102b9de 100644 --- a/site/app.py +++ b/site/app.py @@ -1,12 +1,19 @@ #!/usr/bin/env python -from flask import Flask +from flask import Flask, render_template, make_response app = Flask(__name__) @app.route('/') -def hello_world(): - return render_template('index.html') +def index(): + return render_template('index.j2') + +@app.route('/assets/index.css') +def indexStyle(): + css = render_template('assets/index.css') + response = make_response(css) + response.mimetype = "text/css" + return response if __name__ == '__main__': app.run(host="0.0.0.0", port=8080) diff --git a/site/assets/index.css b/site/templates/assets/index.css similarity index 100% rename from site/assets/index.css rename to site/templates/assets/index.css diff --git a/site/index.html b/site/templates/index.j2 similarity index 100% rename from site/index.html rename to site/templates/index.j2 diff --git a/site/todo.html b/site/templates/todo.html similarity index 100% rename from site/todo.html rename to site/templates/todo.html