Useful utilities for handling S-HTML datastructures.
Useful utilities for handling S-HTML datastructures.
(add-attr tag attribute & values)
Adds all values
to the tag
's attribute
.
Adds all `values` to the `tag`'s `attribute`.
(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.
(attr tag attribute)
Returns tags
's attribute
value.
Returns `tags`'s `attribute` value.
(has-attr tag attribute & values)
Checks wether tag
's attribute
contains all values
.
Checks wether `tag`'s `attribute` contains all `values`.
(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`.
(remove-attr tag attribute & values)
Removes all values
from tag
's attribute
.
Removes all `values` from `tag`'s `attribute`.
(remove-class tag & cs)
Removes all classes in cs
from tag
's :class
attribute.
Removes all classes in `cs` from `tag`'s `:class` attribute.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close