(append-attribute-fragment-kv-except-class sb k v)
(append-attribute-fragment-kv-except-id-class sb k v)
(append-fragment sb)
(append-fragment sb token)
Appends HTML token fragment to an appendable target.
By default, appendable targets is set to types implementing java.lang.Appendable but can be made to target other types by altering the append-to var.
Appends HTML token fragment to an appendable target. By default, appendable targets is set to types implementing java.lang.Appendable but can be made to target other types by altering the append-to var.
(append-opening-tag-with-attrs-id-class sb tag-name attrs)
(append-opening-tag-with-class-attrs sb tag-name head-class attrs)
(append-opening-tag-with-class-attrs-class sb tag-name head-class attrs)
(append-opening-tag-with-class-attrs-id sb tag-name head-class attrs)
(append-opening-tag-with-class-attrs-id-class sb tag-name head-class attrs)
(append-opening-tag-with-id-attrs sb tag-name head-id attrs)
(append-opening-tag-with-id-attrs-class sb tag-name head-id attrs)
(append-opening-tag-with-id-attrs-id sb tag-name head-id attrs)
(append-opening-tag-with-id-attrs-id-class sb tag-name head-id attrs)
(append-opening-tag-with-id-class sb tag-name head-id head-class)
(append-opening-tag-with-id-class-attrs sb tag-name head-id head-class attrs)
(append-opening-tag-with-id-class-attrs-class sb
tag-name
head-id
head-class
attrs)
(append-opening-tag-with-id-class-attrs-id sb tag-name head-id head-class attrs)
(append-opening-tag-with-id-class-attrs-id-class sb
tag-name
head-id
head-class
attrs)
Fascade to function used for fragment appends. By default, it is set to append-to-appendable. Alter this var to change the appendable target type.
Fascade to function used for fragment appends. By default, it is set to append-to-appendable. Alter this var to change the appendable target type.
(append-to-appendable this)
(append-to-appendable this a)
(append-to-appendable this a b)
(append-to-appendable this a b c)
(append-to-appendable this a b c d)
(append-to-appendable this a b c d e)
(append-to-appendable this a b c d e f)
(append-to-appendable this a b c d e f g)
(append-to-appendable this a b c d e f g h)
(append-to-appendable this a b c d e f g h i)
Batch append strings to Appendable.
Batch append strings to Appendable.
(apply-normalized f elem)
Calls function f with 3 arguments, the normalized element's tag keyword, merged attrs map, and content vector.
Calls function f with 3 arguments, the normalized element's tag keyword, merged attrs map, and content vector.
(apply-normalized-with-meta f elem)
Calls function f with 4 arguments, the normalized element's metadata map, tag keyword, merged attrs map, and content vector.
Calls function f with 4 arguments, the normalized element's metadata map, tag keyword, merged attrs map, and content vector.
(append-attribute-fragment-to this sb attr-name)
Appends attribute key and value HTML fragment.
Appends attribute key and value HTML fragment.
(attribute-value-fragment this)
Returns attribute value HTML fragment or nil if none.
Returns attribute value HTML fragment or nil if none.
(content-subvec v start)
(content-subvec v start end)
Creates a subvector with metadata key ::content set to true.
Creates a subvector with metadata key ::content set to true.
(escape-attribute-value)
(escape-attribute-value x)
(escape-attribute-value x & more)
Escape as an attribute value string. Escapes &, <, >, ", and '.
Escape as an attribute value string. Escapes &, <, >, ", and '.
(escape-attribute-value* s)
Escapes an attribute value string. Escapes &, <, >, ", and '.
Escapes an attribute value string. Escapes &, <, >, ", and '.
Fascade to the function used for escaping attribute value fragments. By default, it is set to escape-attribute-value*. Alter this var to change the behavior of escaping attribute value fragments.
Fascade to the function used for escaping attribute value fragments. By default, it is set to escape-attribute-value*. Alter this var to change the behavior of escaping attribute value fragments.
(escape-text)
(escape-text x)
(escape-text x & more)
Escape as a text string. Escapes &, <, and >.
Escape as a text string. Escapes &, <, and >.
(escape-text* s)
Escapes a text string. Escapes &, <, and >.
Escapes a text string. Escapes &, <, and >.
Fascade to the function used for escaping text fragments. By default, it is set to escape-text*. Alter this var to change the behavior of escaping text fragments.
Fascade to the function used for escaping text fragments. By default, it is set to escape-text*. Alter this var to change the behavior of escaping text fragments.
(html root)
Returns HTML string given a HTML Node tree.
Returns HTML string given a HTML Node tree.
(html-serializer root)
Returns a reducible and seqable emitting HTML fragments.
Returns a reducible and seqable emitting HTML fragments.
(join-attribute-value-fragment-kv sb k v)
Key-value reduction function for joining attribute style maps.
Key-value reduction function for joining attribute style maps.
(make-head-attrs head-id head-class)
(make-head-attrs head-id head-class attrs)
(branch? this)
Returns true if branch node.
Returns true if branch node.
(children this)
Returns children as Iterable.
Returns children as Iterable.
(raw)
(raw value)
(raw value & more)
Wraps value as an unescaped string.
Alias for raw-string.
Wraps value as an unescaped string. Alias for raw-string.
(raw-string)
(raw-string value)
(raw-string value & more)
Wraps value as an unescaped string.
Wraps value as an unescaped string.
(reduce-node rf init root)
Like reduce, but iterates over root Node in depth first search order. Leaf nodes are accumulated with the reduction function in order they are encountered.
Like reduce, but iterates over root Node in depth first search order. Leaf nodes are accumulated with the reduction function in order they are encountered.
(reduce-tree branch? children rf init root)
Like reduce, but iterates over a tree depth first search order. Leaf nodes are accumulated with the reduction function in order they are encountered.
Like reduce, but iterates over a tree depth first search order. Leaf nodes are accumulated with the reduction function in order they are encountered.
Resolves alias given tag, attrs map, and content vector, returning the resolved Node.
Resolves alias given tag, attrs map, and content vector, returning the resolved Node.
(resolve-alias-with-meta metadata tag attrs content)
Resolves alias given metadata, tag, attrs map, and content vector, returning the resolved Node.
Override this function's var to resolve alias elements with metadata.
Resolves alias given metadata, tag, attrs map, and content vector, returning the resolved Node. Override this function's var to resolve alias elements with metadata.
(append-fragment-to this sb)
Appends HTML fragment.
Appends HTML fragment.
(fragment this)
Returns HTML fragment.
Returns HTML fragment.
(token-serializer root)
Returns a reducible and seqable emitting Tokens.
Returns a reducible and seqable emitting Tokens.
(write-html sb root)
Writes HTML string to an appendable target.
By default, appendable targets is set to types implementing java.lang.Appendable but can be made to target other types by altering the append-to var.
Writes HTML string to an appendable target. By default, appendable targets is set to types implementing java.lang.Appendable but can be made to target other types by altering the append-to var.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close