Liking cljdoc? Tell your friends :D

s-html.utils

Useful utilities for handling S-HTML datastructures.

Useful utilities for handling S-HTML datastructures.
raw docstring

add-attrclj

(add-attr tag attribute & values)

Adds all values to the tag's attribute.

Adds all `values` to the `tag`'s `attribute`.
sourceraw docstring

add-classclj

(add-class tag & cs)

Adds all classes in cs to the tag's :class attribute.

Adds all classes in `cs` to the `tag`'s `:class` attribute.
sourceraw docstring

attrclj

(attr tag attribute)

Returns tags's attribute value.

Returns `tags`'s `attribute` value.
sourceraw docstring

has-attrclj

(has-attr tag attribute & values)

Checks wether tag's attribute contains all values.

Checks wether `tag`'s `attribute` contains all `values`.
sourceraw docstring

has-classclj

(has-class tag & cs)

Checks wether tag's :class attribute contains all classes in cs.

Checks wether `tag`'s `:class` attribute contains all classes in `cs`.
sourceraw docstring

remove-attrclj

(remove-attr tag attribute & values)

Removes all values from tag's attribute.

Removes all `values` from `tag`'s `attribute`.
sourceraw docstring

remove-classclj

(remove-class tag & cs)

Removes all classes in cs from tag's :class attribute.

Removes all classes in `cs` from `tag`'s `:class` attribute.
sourceraw docstring

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

× close