1
0
mirror of https://github.com/osmarks/mycorrhiza.git synced 2024-10-30 11:46:16 +00:00
mycorrhiza/templates/http_stuff.qtpl

34 lines
604 B
Plaintext
Raw Normal View History

2020-08-31 17:52:26 +00:00
{% func BaseHTML(title, body string) %}
<!doctype html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="/static/common.css">
<title>{%s title %}</title>
</head>
<body>
{%s= body %}
</body>
</html>
{% endfunc %}
{% func PageListHTML(tbody string) %}
<main>
<h1>List of pages</h1>
<table>
<thead>
<tr>
<th>Name</th>
<th>Text path</th>
<th>Text type</th>
<th>Binary path</th>
<th>Binary type</th>
</tr>
</thead>
<tbody>
{%s= tbody %}
</tbody>
</table>
</main>
{% endfunc %}