add: allow lisp templates (bberry)

This commit is contained in:
trisua 2025-05-30 21:22:53 -04:00
parent 8de5c0ea76
commit 78d0766345
10 changed files with 296 additions and 263 deletions

View file

@ -1,22 +0,0 @@
{% extends "root.html" %} {% block head %}
<title>{{ error_text }} - {{ config.name }}</title>
{% endblock %} {% block body %} {{ macros::nav() }}
<main class="flex flex-col gap-2">
<div class="card-nest">
<div class="card">
<b>Error! 😦</b>
</div>
<div class="card flex flex-col gap-4">
<span>{{ error_text }}</span>
<div class="w-full flex gap-2">
<a class="button primary" href="/">Home</a>
<a class="button secondary" href="javascript:history.back()"
>Back</a
>
</div>
</div>
</div>
</main>
{% endblock %}

View file

@ -0,0 +1,26 @@
(text "{% extends \"root.html\" %} {% block head %}")
(title (text "{{ error_text }} - {{ config.name }}"))
(text "{% endblock %} {% block body %} {{ macros::nav() }}")
(main
(: "class" "flex flex-col gap-2")
(div
(: "class" "card-nest")
(div
(: "class" "card")
(b (text "Error 😦")))
(div
(: "class" "card flex flex-col gap-4")
(span (text "{{ error_text }}"))
(div
(: "class" "w-full flex gap-2")
(a
(: "class" "button primary") (: "href" "/")
(text "Home"))
(a
(: "class" "button secondary") (: "href" "javascript:history.back()")
(text "Back"))))))
(text "{% endblock %}")

View file

@ -1,16 +0,0 @@
{% extends "root.html" %} {% block head %}
<title>{{ file_name }} - {{ config.name }}</title>
{% endblock %} {% block body %} {{ macros::nav() }}
<main class="flex flex-col gap-2">
<div class="card-nest">
<div class="card small flex items-center justify-between gap-2">
<span class="flex items-center gap-2">
{{ icon "scroll-text" }}
<span>{{ file_name }}</span>
</span>
</div>
<div class="card">{{ file|markdown|safe }}</div>
</div>
</main>
{% endblock %}

View file

@ -0,0 +1,20 @@
(text "{% extends \"root.html\" %} {% block head %}")
(title (text "{{ file_name }} - {{ config.name }}"))
(text "{% endblock %} {% block body %} {{ macros::nav() }}")
(main
(: "class" "flex flex-col gap-2")
(div
(: "class" "card-nest")
(div
(: "class" "card small flex items-center justify-between gap-2")
(span
(: "class" "flex items-center gap-2")
(text "{{ icon scroll-text }}")
(span (text "{{ file_name }}"))))
(div
(: "class" "card")
(span (text "{{ file|markdown|safe }}")))))
(text "{% endblock %}")