Liking cljdoc? Tell your friends :D

hicada.normalize

Mostly from sablono + hiccup project.

Mostly from sablono + hiccup project.
raw docstring

attributesclj/s

(attributes attrs)

Normalize the :class, :class-name and :className elements

Normalize the :class, :class-name and :className elements
sourceraw docstring

childrenclj/s

(children x)

Normalize the children of a HTML element.

Normalize the children of a HTML element.
sourceraw docstring

class-nameclj/s

(class-name x)
source

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

elementclj/s

(element [tag & content])

Given: [:div.x.y#id (other)] Returns: [:div {:id "id" :class ["x" "y"]} (other)]

Given:
[:div.x.y#id (other)]
Returns:
[:div {:id "id"
       :class ["x" "y"]}
  (other)]
sourceraw 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.
sourceraw docstring

merge-with-classclj/s

(merge-with-class m0 m1)

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

Like clojure.core/merge but concatenate :class entries.
sourceraw 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`.
sourceraw docstring

vec+stringify-classclj/s

(vec+stringify-class klass)

Normalize class into a vector of classes (keywords will be stringified).

Normalize `class` into a vector of classes (keywords will be stringified).
sourceraw docstring

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

× close