Liking cljdoc? Tell your friends :D

s-html.tags

Generic tag builders.

Generic tag builders.
raw docstring

deftagcljmacro

(deftag name)

A helper macro for defining a single tag.

A helper macro for defining a single tag.
sourceraw docstring

deftagscljmacro

(deftags tags)

A helper macro for defining several tags.

A helper macro for defining several tags.
sourceraw docstring

defvoidtagcljmacro

(defvoidtag name)

A helper macro for defining a single void tag.

A helper macro for defining a single void tag.
sourceraw docstring

defvoidtagscljmacro

(defvoidtags tags)

A helper macro for defining several void tags.

A helper macro for defining several void tags.
sourceraw docstring

doctypeclj

(doctype type)

Constructs a DOCTYPE declaration of a given type.

Constructs a DOCTYPE declaration of a given `type`.
sourceraw docstring

doctype?clj

(doctype? obj)

Checks wether an object is a DOCTYPE declaration.

Checks wether an object is a DOCTYPE declaration.
sourceraw docstring

tagclj

(tag name & attrs-or-contents)

Creates a tag with optional attributes and contents. Attributes are a non-tag? map passed as the first argument.

Creates a tag with optional `attributes` and `contents`. Attributes are a non-[[tag?]] map passed as the first argument.
sourceraw docstring

tag?clj

(tag? obj)

Checks wether an object is a tag.

Checks wether an object is a tag.
sourceraw docstring

void-tagclj

(void-tag name)
(void-tag name attrs)

Creates a void tag - a tag that cannot have any contents - with optional attributes.

Creates a void tag - a tag that cannot have any contents - with optional `attributes`.
sourceraw docstring

void-tag?clj

(void-tag? obj)

Checks wether an objects is a void tag.

Checks wether an objects is a void tag.
sourceraw docstring

xmlclj

(xml)
(xml {:keys [encoding version] :as attrs})

Constructs an XML declaration of a given encoding and version. Defaults to UTF-8 and version 1.0.

Constructs an XML declaration of a given `encoding` and `version`. Defaults to `UTF-8` and version `1.0`.
sourceraw docstring

xml?clj

(xml? obj)

Checks wether an object is an XML declaration.

Checks wether an object is an XML declaration.
sourceraw docstring

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

× close