set up web routing and templates

This commit is contained in:
evilchili
2025-09-27 16:20:08 -07:00
parent 8ec9f41b6c
commit 0ce3845a13
7 changed files with 83 additions and 16 deletions
+34
View File
@@ -0,0 +1,34 @@
<!DOCTYPE html>
<html>
<head>
{% block head %}
<meta charset="utf-8">
<title>{% block title %}TTFROG{% endblock %}</title>
<link rel="icon" type="image/x-icon" href="{{ url_for('static', filename='favicon.ico') }}">
{% block styles %}
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='style.css' ) }}">
{% endblock %}
{% endblock %}
</head>
<body>
<nav>
<ul>
<li><a href="{{ url_for('index') }}">Home</a></li>
</ul>
</nav>
<main>
{% for message in get_flashed_messages() %}
<div class="alert">
{{ message }}
</div>
{% endfor %}
{% block content %}{% endblock %}
</main>
<footer>
{% block footer %}
{% endblock %}
</footer>
{% block scripts %}{% endblock %}
</body>
</html>
+1
View File
@@ -0,0 +1 @@
HI
+6
View File
@@ -0,0 +1,6 @@
{% extends "base.html" %}
{% block content %}
<h1>{{ page.title }}</h1>
{{ page.content }}
{% endblock %}