diff options
Diffstat (limited to 'src/view/author.phel')
| -rw-r--r-- | src/view/author.phel | 14 |
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)])]]])) |
