diff --git a/__pycache__/begin.cpython-312.pyc b/__pycache__/begin.cpython-312.pyc index ecc4f9e..a3dc2f5 100644 Binary files a/__pycache__/begin.cpython-312.pyc and b/__pycache__/begin.cpython-312.pyc differ diff --git a/templates/404.html b/templates/404.html index 28f953c..6b74989 100644 --- a/templates/404.html +++ b/templates/404.html @@ -76,17 +76,20 @@ + {% extends "base.html" %} -
-
-

404

-

Oops! Page Not Found

- Error Image -

It looks like the page you are trying to reach doesn't exist.

-

But don't worry, you can go back to the homepage by clicking the button below.

- Go Home -
-
+ {% block content %} +
+
+

404

+

Oops! Page Not Found

+ Error Image +

It looks like the page you are trying to reach doesn't exist.

+

But don't worry, you can go back to the homepage by clicking the button below.

+ Go Home +
+
+ {% endblock %} diff --git a/templates/500.html b/templates/500.html index 4eefa75..347d499 100644 --- a/templates/500.html +++ b/templates/500.html @@ -79,15 +79,17 @@ - -
-

500

-

Internal Server Error

- Error Image -

Something went wrong on our end. We're working on fixing it!

-

Please try again later, or reload the page.

- Reload Page -
+ {% extends "base.html" %} + {% block content %} +
+

500

+

Internal Server Error

+ Error Image +

Something went wrong on our end. We're working on fixing it!

+

Please try again later, or reload the page.

+ Reload Page +
+ {% endblock %}0 diff --git a/templates/base.html b/templates/base.html new file mode 100644 index 0000000..471499c --- /dev/null +++ b/templates/base.html @@ -0,0 +1,28 @@ + + + + + + + + + + + Hello, world! + + + {% include "navbar.html" %} +
+
+ {% block content %} + {% endblock %} +
+ + + + + + + + + diff --git a/templates/index.html b/templates/index.html index c4d0709..d4d6cca 100644 --- a/templates/index.html +++ b/templates/index.html @@ -6,8 +6,12 @@ Main -

Hello World

-

This is a test

+ {% extends "base.html" %} + {% block content %} +

Hello World

+

This is a test

+ + {% endblock %} \ No newline at end of file diff --git a/templates/navbar.html b/templates/navbar.html new file mode 100644 index 0000000..319f48d --- /dev/null +++ b/templates/navbar.html @@ -0,0 +1,23 @@ + \ No newline at end of file diff --git a/templates/user.html b/templates/user.html index d6d55f1..19332df 100644 --- a/templates/user.html +++ b/templates/user.html @@ -6,29 +6,33 @@ {{name | capitalize}}'s page -

Hello {{name | upper}}!!

-

Hello {{name | capitalize}}!!

-

Hello {{name | lower}}!!

-

Hello {{name | title}}!!

-

{{ stuff }}

-

{{ stuff | safe }}

-

{{ stuff | striptags }}

+ {% extends "base.html" %} - {% for item in liste %} - {% if item == 3 %} -

Thiiiiiiiiis is number THREEEEEEEEE!!!!

- {% else %} -

{{ item }}

- {% endif %} - {% endfor %} + {% block content %} +

Hello {{name | upper}}!!

+

Hello {{name | capitalize}}!!

+

Hello {{name | lower}}!!

+

Hello {{name | title}}!!

+

{{ stuff }}

+

{{ stuff | safe }}

+

{{ stuff | striptags }}

-

Sahe thing with some math!

+ {% for item in liste %} + {% if item == 3 %} +

Thiiiiiiiiis is number THREEEEEEEEE!!!!

+ {% else %} +

{{ item }}

+ {% endif %} + {% endfor %} - {% for item in liste %} -

{{ item **25 }}

- {% endfor %} +

Sahe thing with some math!

-

The last element of my list is: {{liste[4]}}

+ {% for item in liste %} +

{{ item **25 }}

+ {% endfor %} + +

The last element of my list is: {{liste[4]}}

+ {% endblock %} \ No newline at end of file