Library for rendering a tree of vectors into a string of HTML. Pre-compiles where possible for performance. Core macros and their (Clojure) helper functions.
Library for rendering a tree of vectors into a string of HTML. Pre-compiles where possible for performance. Core macros and their (Clojure) helper functions.
(defelem name & fdecl)Defines a function that will return a element vector. If the first argument passed to the resulting function is a map, it merges it with the attribute map of the returned element value.
Defines a function that will return a element vector. If the first argument passed to the resulting function is a map, it merges it with the attribute map of the returned element value.
(defhtml name & fdecl)Define a function, but wrap its output in an implicit html macro.
Define a function, but wrap its output in an implicit html macro.
(html options & content)Render Clojure data structures to a string of HTML.
Render Clojure data structures to a string of HTML.
(html4 & contents)Create a HTML 4 document with the supplied contents. The first argument may be an optional attribute map.
Create a HTML 4 document with the supplied contents. The first argument may be an optional attribute map.
(html5 options & contents)Create a HTML5 document with the supplied contents.
Create a HTML5 document with the supplied contents.
(wrap-attrs func)Add an optional attribute argument to a function that returns a element vector.
Add an optional attribute argument to a function that returns a element vector.
(xhtml options & contents)Create a XHTML 1.0 strict document with the supplied contents. The first argument may be an optional attribute may. The following attributes are treated specially: :lang - The language of the document :encoding - The character encoding of the document, defaults to UTF-8.
Create a XHTML 1.0 strict document with the supplied contents. The first argument may be an optional attribute may. The following attributes are treated specially: :lang - The language of the document :encoding - The character encoding of the document, defaults to UTF-8.
(xhtml-tag attr-map? lang & contents)Create an XHTML element for the specified language.
Create an XHTML element for the specified language.
(xml-declaration encoding)Create a standard XML declaration for the following encoding.
Create a standard XML declaration for the following encoding.
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 |