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

defelemclj/smacro

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

defhtmlclj/smacro

(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

doctypeclj

source

htmlclj/smacro

(html options & content)

Render Clojure data structures to a string of HTML.

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

html4clj/smacro

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

html5clj/smacro

(html5 options & contents)

Create a HTML5 document with the supplied contents.

Create a HTML5 document with the supplied contents.
sourceraw 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.
sourceraw docstring

xhtmlclj/smacro

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

xml-declarationclj

(xml-declaration encoding)

Create a standard XML declaration for the following encoding.

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

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

× close