diff options
author | BonfaceKilz | 2020-11-03 17:33:58 +0300 |
---|---|---|
committer | BonfaceKilz | 2020-11-03 17:33:58 +0300 |
commit | 682763de47dbf15048faf302bb7f8ed524ecb27b (patch) | |
tree | 4e70d10ce90e04b3afbdd22281259d109bc81204 /wqflask | |
parent | 52b2b9b8a68572207d9165e57b50fd90c63b1d1e (diff) | |
download | genenetwork2-682763de47dbf15048faf302bb7f8ed524ecb27b.tar.gz |
Add glossary template and use it
Diffstat (limited to 'wqflask')
-rw-r--r-- | wqflask/wqflask/glossary.py | 4 | ||||
-rw-r--r-- | wqflask/wqflask/templates/glossary.html | 7 |
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 %} |