initial commit

This commit is contained in:
2024-02-27 10:07:50 +08:00
commit a6c0f916b7
17 changed files with 4929 additions and 0 deletions

23
templates/_layout.html Normal file
View File

@ -0,0 +1,23 @@
<!DOCTYPE html>
<html lang="en">
<head>
{% block head %}
<title>{% block fulltitle %}{% block title %}{% endblock %} - {% block sitename %}Demo{% endblock %}{% endblock %}</title>
{% block stylesheets %}
<link rel="stylesheet" href="/static/style.css" />
{% block extrastylesheet %}{% endblock %}
{% endblock %}
{% endblock %}
</head>
<body>
<div id="content">{% block content %}{% endblock %}</div>
<div id="footer">
{% block footer %}
&copy; Copyright 2024 by <a href="http://blog.jeffthecoder.xyz/">Jeff</a>.
{% endblock %}
</div>
</body>
</html>

6
templates/index.html Normal file
View File

@ -0,0 +1,6 @@
{% extends "_layout.html" %}
{% block title %}A simple and silly address prober{% endblock %}
{% block content %}
<div id="address">{{ address }}</div>
<form method="post" action="/reload"><button type="submit">reload</button></form>
{% endblock %}