from flask import current_app as app
from flask import render_template
+from .utils.constants import Constants as C
-@app.route(u"/")
+
+@app.route(C.APPLICATIN_ROOT)
def home():
"""Landing page.
"""
return render_template(
- u"index_layout.jinja2",
- title=u"FD.io CSIT",
- description=u"Performance Dashboard",
- template=u"d-flex h-100 text-center text-white bg-dark"
+ C.MAIN_HTML_LAYOUT_FILE,
+ title=C.TITLE,
+ description=C.DESCRIPTION,
+ template=C.TEMPLATE
)