From a7c83e857a080c10cb8df60eba4d88dfdd0ecb46 Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Tue, 26 Jun 2018 07:23:53 +0200 Subject: [PATCH] Add a super-basic index HTML --- app/__init__.py | 4 ++-- app/templates/index.html | 26 ++++++++++++++++++++++++++ 2 files changed, 28 insertions(+), 2 deletions(-) create mode 100644 app/templates/index.html diff --git a/app/__init__.py b/app/__init__.py index ad97836..90d5b5c 100644 --- a/app/__init__.py +++ b/app/__init__.py @@ -14,7 +14,7 @@ # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see . -from flask import Flask +from flask import Flask, render_template class CalendarSocialApp(Flask): @@ -26,7 +26,7 @@ app = CalendarSocialApp(__name__) @app.route('/') def hello(): - return 'Hello!' + return render_template('index.html') if __name__ == '__main__': diff --git a/app/templates/index.html b/app/templates/index.html new file mode 100644 index 0000000..a52002f --- /dev/null +++ b/app/templates/index.html @@ -0,0 +1,26 @@ + + + + Calendar.Social +{% block head %} + +{% endblock %} + + +
+

Calendar.social

+
+{% block content %}{% endblock %} + +{% block scripts %}{% endblock %} + +