Convert Hiccup to clojure.xml style :tag/:attrs/:content maps, with support for :<>, function components, and extensible via protocol.
Anywhere where we need to render Hiccup we should prefer to go through this namespace.
Convert Hiccup to clojure.xml style :tag/:attrs/:content maps, with support for :<>, function components, and extensible via protocol. Anywhere where we need to render Hiccup we should prefer to go through this namespace.
(html & nodes-specs)Convert hiccup to clojure.xml. Like net.cgrand.enlive/html, but additionally support function components, fragments with :<>, and extensible via the HiccupTag protocol.
Convert hiccup to clojure.xml. Like net.cgrand.enlive/html, but additionally support function components, fragments with :<>, and extensible via the HiccupTag protocol.
Prefixes which retain their kebab-case in HTML, rather than having their
dashes removed, which is the default behavior. E.g. :on-click =>
"onclick" vs :data-foo => "data-foo". Can be swap!-ed at runtime,
or set at boot with the lambdaisland.hiccup.kebab-prefixes Java system
property.
Prefixes which retain their kebab-case in HTML, rather than having their dashes removed, which is the default behavior. E.g. `:on-click` => `"onclick"` vs `:data-foo` => `"data-foo"`. Can be `swap!`-ed at runtime, or set at boot with the `lambdaisland.hiccup.kebab-prefixes` Java system property.
(render h)(render h {:keys [doctype?] :or {doctype? true} :as opts})Render hiccup to string
Render hiccup to string
(render-html h)Render clojure.xml to string, add DOCTYPE
Render clojure.xml to string, add DOCTYPE
(render-html* h)Render clojure.xml to string. Emits void-tags for HTML5 void elements (no closing tag or self-closing).
Render clojure.xml to string. Emits void-tags for HTML5 void elements (no closing tag or self-closing).
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |