Liking cljdoc? Tell your friends :D

daiquiri.normalize


attributes

(attributes attrs)

Normalize the attrs of an element.

Normalize the `attrs` of an element.
sourceraw docstring

children

(children x)

Normalize the children of a HTML element.

Normalize the children of a HTML element.
sourceraw docstring

class-name

(class-name x)
source

element

(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].
sourceraw docstring

map-lookup?

(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.
sourceraw docstring

match-tag

(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.
sourceraw docstring

merge-with-class

(merge-with-class & maps)

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

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

normalize-class

(normalize-class class)

Normalize class into a vector of classes.

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

strip-css

(strip-css s)

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

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

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

× close