summaryrefslogtreecommitdiff
path: root/src/match_up/routes.py
diff options
context:
space:
mode:
authorKaran Jayachandra <mail@karanjayachandra.com>2024-11-09 14:34:58 +0100
committerKaran Jayachandra <mail@karanjayachandra.com>2024-11-09 14:34:58 +0100
commitbc587d676dca709c8ff8a21470a68938359a7ec8 (patch)
tree7281fd74136e4cf53ad3b80b341a50ec1aaca6cc /src/match_up/routes.py
parent6d8e46354f6ed8d22fbbbbb1258781182effe529 (diff)
Moved some of the imports to the routes file to keep the package clean
Diffstat (limited to 'src/match_up/routes.py')
-rw-r--r--src/match_up/routes.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/match_up/routes.py b/src/match_up/routes.py
index 528fa4e..524d50b 100644
--- a/src/match_up/routes.py
+++ b/src/match_up/routes.py
@@ -1,6 +1,9 @@
-from match_up import app, re, rg
+from match_up import app, rg
+from jinja2 import Environment, PackageLoader
from flask import render_template, request, url_for
+re = Environment(loader=PackageLoader("match_up"))
+
@app.route("/", methods=["GET"])
def home():
template = re.get_template("index.j2").render(url_for=url_for)