hiccup.page

Functions for setting up HTML pages.

doctype

Map of doctype strings.

html4

macro

(html4 & contents)

Create a HTML 4 document with the supplied contents. The first argument may be an optional attribute map.

html5

macro

(html5 options & contents)

Create a HTML5 document with the supplied contents.

include-css

(include-css & styles)

Include a list of external stylesheet files.

include-js

(include-js & scripts)

Include a list of external javascript files.

xhtml

macro

(xhtml options & contents)

Create a XHTML 1.0 strict document with the supplied contents. The first argument may be an optional attribute map. The following attributes are treated specially:

:lang
The language of the document
:encoding
The character encoding of the document (defaults to UTF-8).

xhtml-tag

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

Create an XHTML element for the specified language.

xml-declaration

(xml-declaration encoding)

Create a standard XML declaration for the following encoding.