From 1f3cb17751fd3fe529408d2b54f1ef9176c609b2 Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Fri, 29 Jun 2018 07:58:28 +0200 Subject: [PATCH] [Refactor] Split index.html to base.html and welcome.html --- app/__init__.py | 2 +- app/templates/{index.html => base.html} | 0 app/templates/welcome.html | 5 +++++ 3 files changed, 6 insertions(+), 1 deletion(-) rename app/templates/{index.html => base.html} (100%) create mode 100644 app/templates/welcome.html diff --git a/app/__init__.py b/app/__init__.py index 75430c9..a3f09b4 100644 --- a/app/__init__.py +++ b/app/__init__.py @@ -32,7 +32,7 @@ app = CalendarSocialApp(__name__) @app.route('/') def hello(): - return render_template('index.html') + return render_template('welcome.html') if __name__ == '__main__': diff --git a/app/templates/index.html b/app/templates/base.html similarity index 100% rename from app/templates/index.html rename to app/templates/base.html diff --git a/app/templates/welcome.html b/app/templates/welcome.html new file mode 100644 index 0000000..10c27c3 --- /dev/null +++ b/app/templates/welcome.html @@ -0,0 +1,5 @@ +{% extends 'base.html' %} + +{% block content %} +

Welcome to Calendar.social. There will be lot of content here soon!

+{% endblock content %} -- 2.40.1