dev: integrate tera into app data
This commit is contained in:
@@ -1,8 +1,12 @@
|
||||
# example file to show/test configuration
|
||||
|
||||
[unix]
|
||||
groups = [ "wheel", 0, "users" ]
|
||||
groups = ["wheel", 0, "users"]
|
||||
# magic_paths = [ "/usr/share/file/misc/magic" ]
|
||||
|
||||
# [server]
|
||||
[server]
|
||||
# listen = "127.0.0.1:8080"
|
||||
templates = "assets/templates/**/*"
|
||||
|
||||
[render]
|
||||
title = "My Server"
|
||||
|
||||
24
assets/templates/login.html
Normal file
24
assets/templates/login.html
Normal file
@@ -0,0 +1,24 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>{{ title }} - Login</title>
|
||||
<link href="css/style.css" rel="stylesheet" />
|
||||
</head>
|
||||
<body>
|
||||
{% include "partials/header.html" %}
|
||||
|
||||
<main>
|
||||
<form method="post">
|
||||
<h2>Username</h2>
|
||||
<input type="text" name="username" placeholder="username" />
|
||||
|
||||
<h2>Password</h2>
|
||||
<input type="password" name="password" placeholder="password" />
|
||||
|
||||
<button type="submit">Login</button>
|
||||
</form>
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
||||
3
assets/templates/partials/header.html
Normal file
3
assets/templates/partials/header.html
Normal file
@@ -0,0 +1,3 @@
|
||||
<nav class="header">
|
||||
<span>header</header>
|
||||
</nav>
|
||||
Reference in New Issue
Block a user