Liking cljdoc? Tell your friends :D

sablono.normalize


attributesclj/s

(attributes attrs)

Normalize the attrs of an element.

Normalize the `attrs` of an element.
raw docstring

childrenclj/s

(children x)

Normalize the children of a HTML element.

Normalize the children of a HTML element.
raw docstring

classclj/s

(class class)

Normalize class into a vector of classes.

Normalize `class` into a vector of classes.
raw docstring

class-nameclj/s

(class-name x)

compact-mapclj/s

(compact-map m)

Removes all map entries where the value of the entry is empty.

Removes all map entries where the value of the entry is empty.
raw docstring

elementclj/s

(element [tag & content])

Ensure an element vector is of the form [tag-name attrs content].

Ensure an element vector is of the form [tag-name attrs content].
raw docstring

map-lookup?clj/s

(map-lookup? x)

Returns true if x is a map lookup form, otherwise false.

Returns true if `x` is a map lookup form, otherwise false.
raw docstring

match-tagclj/s

(match-tag s)

Match s as a CSS tag and return a vector of tag name, CSS id and CSS classes.

Match `s` as a CSS tag and return a vector of tag name, CSS id and
CSS classes.
raw docstring

merge-with-classclj/s

(merge-with-class & maps)

Like clojure.core/merge but concatenate :class entries.

Like clojure.core/merge but concatenate :class entries.
raw docstring

strip-cssclj/s

(strip-css s)

Strip the # and . characters from the beginning of s.

Strip the # and . characters from the beginning of `s`.
raw docstring

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

× close