site.fabricate.prototype.html Namespace

Namespace for creating HTML forms using Hiccup data structures and for verifying their structural correctness using malli schemas. The schemas in this namespace implement a non-interactive subset of the MDN HTML spec.


Functions


Error
Error type
class clojure.lang.Compiler$CompilerException
Error message
No such var: page/expr->hiccup
Error phase
:compile-syntax-check
Location
Lines 21-35, Columns 1-28
Source expression
 [:div (->> vars
         (filter (fn [[k v]] (fn? (var-get v))))
         (reduce (fn [l [k v]]
(conj l [:dt [:code {:class "language-clojure symbol"} k]]
      [:dd [:dl
            [:dt "Description" ]
            [:dd (:doc (meta v))]
            [:dt "Arguments"]
            [:dd
             (apply conj [:ul {:style (garden/style {:list-style-type "none"})}]
                    (map (fn [a]
                           [:li [:code {:class "language-clojure"}
                                 (page/expr->hiccup a)]])
                         (:arglists (meta v))))]]]))
                 [:dl]))]


Constants


Error
Error type
class clojure.lang.Compiler$CompilerException
Error message
No such var: page/expr->hiccup
Error phase
:compile-syntax-check
Location
Lines 39-46, Columns 1-28
Source expression
 [:div (->> vars
         (filter (fn [[k v]] (not (fn? (var-get v)))))
         (reduce (fn [l [k v]]
(conj l [:dt [:code {:class "language-clojure symbol"} k]]
      [:dd [:dl [:dt "Description"] [:dd (:doc (meta v))]
            [:dt "Type"]
            [:dd [:code (page/expr->hiccup (type (var-get v)))]]]]))
                 [:dl]))]