mirror of
https://github.com/YGGverse/hlstate-rs.git
synced 2026-04-01 01:25:38 +00:00
init httpd crate skeleton
This commit is contained in:
parent
470a7d0e73
commit
802e0821e4
13 changed files with 1877 additions and 432 deletions
14
crates/httpd/templates/index.html.tera
Normal file
14
crates/httpd/templates/index.html.tera
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
{% extends "layout" %}
|
||||
{% block content %}
|
||||
{% if servers %}
|
||||
{% for server in servers %}
|
||||
<div>
|
||||
<h2><a href="{{ server.host }}">{{ server.name }}</a></h2>
|
||||
</div>
|
||||
{% endfor %}
|
||||
{% else %}
|
||||
<div>
|
||||
<p>Nobody.</p>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endblock content %}
|
||||
18
crates/httpd/templates/layout.html.tera
Normal file
18
crates/httpd/templates/layout.html.tera
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<title>{{ title }}</title>
|
||||
<style>
|
||||
* {color-scheme: light dark}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<h1><a href="/">{{ title }}</a></h1>
|
||||
</header>
|
||||
<main>
|
||||
{% block content %}{% endblock content %}
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue