Liking cljdoc? Tell your friends :D

marginalia.hiccup

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.
raw docstring

*base-url*clj

source

*html-mode*clj

source

add-optional-attrsclj

(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.
sourceraw docstring

as-strclj

(as-str)
(as-str x)
(as-str x & ys)
source

compile-attr-mapclj

(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.
sourceraw docstring

defelemcljmacro

(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.
sourceraw docstring

defhtmlcljmacro

(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.
sourceraw docstring

escape-htmlclj

(escape-html text)

Change special characters into HTML character entities.

Change special characters into HTML character entities.
sourceraw docstring

hclj

source

htmlcljmacro

(html options & content)

Render Clojure data structures to a string of HTML.

Render Clojure data structures to a string of HTML.
sourceraw docstring

resolve-uriclj

(resolve-uri uri)

Prepends the base-url to the supplied URI.

Prepends the base-url to the supplied URI.
sourceraw docstring

with-base-urlcljmacro

(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.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close