add: allow lisp templates (bberry)
This commit is contained in:
parent
8de5c0ea76
commit
78d0766345
10 changed files with 296 additions and 263 deletions
|
@ -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 %}
|
26
crates/app/src/public/html/misc/error.lisp
Normal file
26
crates/app/src/public/html/misc/error.lisp
Normal 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 %}")
|
|
@ -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 %}
|
20
crates/app/src/public/html/misc/markdown.lisp
Normal file
20
crates/app/src/public/html/misc/markdown.lisp
Normal 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 %}")
|
Loading…
Add table
Add a link
Reference in a new issue