diff options
author | Linnnus <[email protected]> | 2024-03-20 15:17:36 +0100 |
---|---|---|
committer | Linnnus <[email protected]> | 2024-03-20 15:19:40 +0100 |
commit | db93ff98409fac1c1a3742d0f81484c985d6d55c (patch) | |
tree | a32c8eabb86b10588b6da96d124540f02cec2de1 /views | |
parent | 3c1e773f0a91f1a8ef9e637738bb39318ece68f3 (diff) |
Add templating engine and index page
Diffstat (limited to 'views')
-rw-r--r-- | views/base.html | 13 | ||||
-rw-r--r-- | views/index.html | 7 |
2 files changed, 20 insertions, 0 deletions
diff --git a/views/base.html b/views/base.html new file mode 100644 index 0000000..9b364a8 --- /dev/null +++ b/views/base.html @@ -0,0 +1,13 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1.0"> + </head> + <body> + <header> + </header> + <main>{% block content %}{% endblock %}</main> + <footer> + </footer> + </body> +</html> diff --git a/views/index.html b/views/index.html new file mode 100644 index 0000000..e98e8e5 --- /dev/null +++ b/views/index.html @@ -0,0 +1,7 @@ +{% extends "base.html" %} + +{% block content %} + <h1>Index</h1> + <p class="important">Welcome to my awesome homepage.</p> +{% endblock %} + |