Liking cljdoc? Tell your friends :D

hiccups.core

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

defelemcljmacro

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

doctypeclj


htmlcljmacro

(html options & content)

Render Clojure data structures to a string of HTML.

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

html4cljmacro

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

html5cljmacro

(html5 options & contents)

Create a HTML5 document with the supplied contents.

Create a HTML5 document with the supplied contents.
raw docstring

wrap-attrsclj

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

xhtmlcljmacro

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

xhtml-tagclj

(xhtml-tag attr-map? lang & contents)

Create an XHTML element for the specified language.

Create an XHTML element for the specified language.
raw docstring

xml-declarationclj

(xml-declaration encoding)

Create a standard XML declaration for the following encoding.

Create a standard XML declaration for the following encoding.
raw docstring

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

× close