aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBonfaceKilz2020-11-03 17:33:58 +0300
committerBonfaceKilz2020-11-03 17:33:58 +0300
commit682763de47dbf15048faf302bb7f8ed524ecb27b (patch)
tree4e70d10ce90e04b3afbdd22281259d109bc81204
parent52b2b9b8a68572207d9165e57b50fd90c63b1d1e (diff)
downloadgenenetwork2-682763de47dbf15048faf302bb7f8ed524ecb27b.tar.gz
Add glossary template and use it
-rw-r--r--wqflask/wqflask/glossary.py4
-rw-r--r--wqflask/wqflask/templates/glossary.html7
2 files changed, 9 insertions, 2 deletions
diff --git a/wqflask/wqflask/glossary.py b/wqflask/wqflask/glossary.py
index 0918744a..a44e7c45 100644
--- a/wqflask/wqflask/glossary.py
+++ b/wqflask/wqflask/glossary.py
@@ -1,9 +1,9 @@
from flask import Blueprint
-
+from flask import render_template
glossary_blueprint = Blueprint('glossary_blueprint', __name__)
@glossary_blueprint.route('/')
def glossary():
- return "This is a test", 200
+ return render_template("glossary.html"), 200
diff --git a/wqflask/wqflask/templates/glossary.html b/wqflask/wqflask/templates/glossary.html
new file mode 100644
index 00000000..988297d3
--- /dev/null
+++ b/wqflask/wqflask/templates/glossary.html
@@ -0,0 +1,7 @@
+{% extends "base.html" %}
+
+{% block title %}Glossary{% endblock %}
+
+{% block content %}
+Test
+{% endblock %}