Start work on HTML generation
This commit is contained in:
18
doclet/src/clojure/play_clj_doclet/html.clj
Normal file
18
doclet/src/clojure/play_clj_doclet/html.clj
Normal file
@@ -0,0 +1,18 @@
|
||||
(ns play-clj-doclet.html
|
||||
(:require [hiccup.core :refer :all]))
|
||||
|
||||
(defn create-item
|
||||
[[name text params]]
|
||||
[:div
|
||||
[:h3 (str name)]
|
||||
[:i text]])
|
||||
|
||||
(defn create-section
|
||||
[[clj-name items]]
|
||||
[:div
|
||||
[:h2 {} clj-name]
|
||||
(map create-item items)])
|
||||
|
||||
(defn create-html
|
||||
[doc-map]
|
||||
(html (map create-section doc-map)))
|
||||
Reference in New Issue
Block a user