Generic tag builders.
Generic tag builders.
(deftag name)
A helper macro for defining a single tag.
A helper macro for defining a single tag.
(deftags tags)
A helper macro for defining several tags.
A helper macro for defining several tags.
(defvoidtag name)
A helper macro for defining a single void tag.
A helper macro for defining a single void tag.
(defvoidtags tags)
A helper macro for defining several void tags.
A helper macro for defining several void tags.
(doctype type)
Constructs a DOCTYPE declaration of a given type
.
Constructs a DOCTYPE declaration of a given `type`.
(doctype? obj)
Checks wether an object is a DOCTYPE declaration.
Checks wether an object is a DOCTYPE declaration.
(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.
(tag? obj)
Checks wether an object is a tag.
Checks wether an object is a tag.
(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`.
(void-tag? obj)
Checks wether an objects is a void tag.
Checks wether an objects is a void tag.
(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`.
(xml? obj)
Checks wether an object is an XML declaration.
Checks wether an object is an XML declaration.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close