added in 2.0

Library for rendering a tree of vectors into HTML. Pre-compiles where possible for performance. Strings are automatically escaped.



added in 2.0

(html options & content)

Render Clojure data structures to a compiled representation of HTML. To turn the representation into a string, use clojure.core/str. Strings inside the macro are automatically HTML-escaped. To insert a string without it being escaped, use the raw function.

A literal option map may be specified as the first argument. It accepts two keys that control how the HTML is outputted:

One of :html, :xhtml, :xml or :sgml (defaults to :xhtml). Controls how tags are rendered.
True if strings should be escaped (defaults to true).


added in 2.0

Short alias for hiccup.util/raw-string.