summaryrefslogtreecommitdiffstats
path: root/src/view/author.phel
diff options
context:
space:
mode:
authorGravatar Tom Willemse2026-08-25 23:02:08 -0700
committerGravatar Tom Willemse2026-08-25 23:02:08 -0700
commit9d4733413c791c8e4f589a197a0da91dad279740 (patch)
tree42ae877b286de0a66ccd17efbcb258f5ea07b823 /src/view/author.phel
parent8bf0bca2c77a4af53002f43941fe634f3c12ef56 (diff)
downloadlezer-9d4733413c791c8e4f589a197a0da91dad279740.tar.gz
lezer-9d4733413c791c8e4f589a197a0da91dad279740.zip
Add author page
Diffstat (limited to 'src/view/author.phel')
-rw-r--r--src/view/author.phel14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/view/author.phel b/src/view/author.phel
new file mode 100644
index 0000000..4253941
--- /dev/null
+++ b/src/view/author.phel
@@ -0,0 +1,14 @@
+(ns lezer.view.author
+ (:require phel.html :refer [html doctype]))
+
+(defn author-html [author books]
+ (html
+ (doctype :html5)
+ [:html
+ [:head
+ [:title (str "Author: " author " - Lezer")]]
+ [:body
+ [:h1 (:name author)]
+ [:ul
+ (for [book :in books]
+ [:li (:title book)])]]]))