diff --git a/run.py b/run.py index 1e92373..42cd158 100644 --- a/run.py +++ b/run.py @@ -12,6 +12,11 @@ def index(): # Return HTML content return "

This is the default page

" +@app.route("/dashboard") +def dashboard(): + # Return Dashboard.html + return render_template("dashboard.html") + @app.route("/forms") def forms(): diff --git a/templates/base_template.html b/templates/base_template.html index 89afbe5..a3790a7 100644 --- a/templates/base_template.html +++ b/templates/base_template.html @@ -9,6 +9,9 @@ {% block content %} + {% include "navbar_base.html" %} + {% block navbar %} + {% endblock %} {% endblock %} \ No newline at end of file diff --git a/templates/dashboard.html b/templates/dashboard.html index bdb612a..da56b53 100644 --- a/templates/dashboard.html +++ b/templates/dashboard.html @@ -1,14 +1,7 @@ - - +{% extends "base_template.html" %} - - - - Dashboard - +{%block title%}Dashboard{%endblock%} - - - - - \ No newline at end of file +{%block content%} + +{%endblock%} \ No newline at end of file diff --git a/templates/login_page.html b/templates/login_page.html new file mode 100644 index 0000000..e69de29 diff --git a/templates/navbar_base.html b/templates/navbar_base.html index e7e3f59..d58afb9 100644 --- a/templates/navbar_base.html +++ b/templates/navbar_base.html @@ -1,14 +1,7 @@ - - - - - - - Default - - - - - - - \ No newline at end of file +{%block navbar%} + +{%endblock%}