summaryrefslogtreecommitdiffstats
path: root/src/view/book.phel
diff options
context:
space:
mode:
authorGravatar Tom Willemse2026-09-09 22:57:41 -0700
committerGravatar Tom Willemse2026-09-09 22:57:41 -0700
commit3ee724eb0c4d681e81f6d915b88fa5985957b27a (patch)
tree9acc75aceaadf2d1ead9f26bd184eeb9e69f5398 /src/view/book.phel
parentf78b4b0eedbcff9994580bfddaead52301cca37f (diff)
downloadlezer-3ee724eb0c4d681e81f6d915b88fa5985957b27a.tar.gz
lezer-3ee724eb0c4d681e81f6d915b88fa5985957b27a.zip
Add page for each book
Diffstat (limited to 'src/view/book.phel')
-rw-r--r--src/view/book.phel11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/view/book.phel b/src/view/book.phel
new file mode 100644
index 0000000..79341ad
--- /dev/null
+++ b/src/view/book.phel
@@ -0,0 +1,11 @@
+(ns lezer.view.book
+ (:require phel.html :refer [html doctype]))
+
+(defn book-html [book]
+ (html
+ (doctype :html5)
+ [:html
+ [:head
+ [:title (str "Book: " (:title book) " - Lezer")]]
+ [:body
+ [:h1 (:title book)]]]))