add: postgres support

chore: restructure
This commit is contained in:
trisua 2025-03-22 22:17:47 -04:00
parent cda879f6df
commit b6fe2fba37
58 changed files with 3403 additions and 603 deletions

12
example/.gitignore vendored
View file

@ -1,3 +1,9 @@
atto.db
html/_atto/
public/_atto/
atto.db*
html/*
!html/.gitkeep
public/*
!public/.gitkeep
media/*

0
example/html/.gitkeep Normal file
View file

View file

@ -1,38 +0,0 @@
{% extends "_atto/root.html" %} {% block body %}
<nav>
<div class="content_container">
<div class="flex nav_side">
<a href="/" class="button desktop title">
<b>{{ name }}</b>
</a>
<a href="/" class="button active">Home</a>
</div>
<div class="flex nav_side">
<a href="/_atto/login" class="button">Login</a>
<a href="/_atto/register" class="button">Register</a>
</div>
</div>
</nav>
<main class="flex flex-col gap-2">
<h1>Hello, world!</h1>
<div class="pillmenu">
<a class="active" href="#">A</a>
<a href="#">B</a>
<a href="#">C</a>
</div>
<div class="card w-full flex flex-col gap-2">
<div class="flex gap-2 flex-wrap">
<button>Hello, world!</button>
<button class="secondary">Hello, world!</button>
<button class="camo">Hello, world!</button>
</div>
<input type="text" placeholder="abcd" />
</div>
</main>
{% endblock %}

View file

@ -3,7 +3,6 @@ port = 4118
[security]
registration_enabled = true
admin_user = "admin"
[dirs]
templates = "html"