From 0e7b58985844590272828fa00ec95dc30ab5c5a7 Mon Sep 17 00:00:00 2001 From: Alex Wright Date: Sat, 17 Nov 2018 09:24:40 +0100 Subject: [PATCH] Adding templates dir and base.html --- backend/src/app.py | 4 ++-- backend/src/templates/base.html | 15 +++++++++++++++ backend/src/templates/landing.html | 8 ++++++++ 3 files changed, 25 insertions(+), 2 deletions(-) create mode 100644 backend/src/templates/base.html create mode 100644 backend/src/templates/landing.html diff --git a/backend/src/app.py b/backend/src/app.py index 0cc56af..6a23b0a 100644 --- a/backend/src/app.py +++ b/backend/src/app.py @@ -1,9 +1,9 @@ import logging -from flask import Flask, Response +from flask import Flask, render_template app = Flask(__name__) app.logger.setLevel(logging.INFO) @app.route('/') def index(): - return Response('HI!') + return render_template('landing.html') diff --git a/backend/src/templates/base.html b/backend/src/templates/base.html new file mode 100644 index 0000000..c362663 --- /dev/null +++ b/backend/src/templates/base.html @@ -0,0 +1,15 @@ + + + + FileDrop App + + +
+ {% block main %} +

+ Nothing to see here. +

+ {% endblock %} +
+ + diff --git a/backend/src/templates/landing.html b/backend/src/templates/landing.html new file mode 100644 index 0000000..2016d16 --- /dev/null +++ b/backend/src/templates/landing.html @@ -0,0 +1,8 @@ +{% extends "base.html" %} + +{% block main %} +

FileDrop App

+
+ Form to select and upload files will go here. +
+{% endblock %}