Library for rendering a tree of vectors into a string of HTML. Pre-compiles where possible for performance.
Library for rendering a tree of vectors into a string of HTML. Pre-compiles where possible for performance.
(add-optional-attrs func)Add an optional attribute argument to a function that returns a vector tag.
Add an optional attribute argument to a function that returns a vector tag.
(as-str)(as-str x)(as-str x & ys)(compile-attr-map attrs)Returns an unevaluated form that will render the supplied map as HTML attributes.
Returns an unevaluated form that will render the supplied map as HTML attributes.
(defelem name & fdecl)Defines a function that will return a tag vector. If the first argument passed to the resulting function is a map, it merges it with the attribute map of the returned tag value.
Defines a function that will return a tag vector. If the first argument passed to the resulting function is a map, it merges it with the attribute map of the returned tag 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.
(escape-html text)Change special characters into HTML character entities.
Change special characters into HTML character entities.
(html options & content)Render Clojure data structures to a string of HTML.
Render Clojure data structures to a string of HTML.
(resolve-uri uri)Prepends the base-url to the supplied URI.
Prepends the base-url to the supplied URI.
(with-base-url base-url & body)Add a base-url that will be added to the output of the resolve-uri function.
Add a base-url that will be added to the output of the resolve-uri function.
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 |