A set of useful functions related to HTML processing
A set of useful functions related to HTML processing
(backlet text class-item)
Will change last letter in hiccup form
Will change last letter in hiccup form
(catcher err-binding on-error & body)
evaluates body, on error, creates an exception, that binds to a variable declared in [err-binding]. Example (catcher [blabus] (println (.getMessage blabus)) (/ 1 0))
evaluates body, on error, creates an exception, that binds to a variable declared in [err-binding]. Example (catcher [blabus] (println (.getMessage blabus)) (/ 1 0))
(gen-layout-class pivot a b c)
Will generate position specific class. For example: For the pivot 3 classes are: text-align:left; text-align:center; text-align:right; Useful when implementing something on CSS grid
Will generate position specific class. For example: For the pivot 3 classes are: text-align:left; text-align:center; text-align:right; Useful when implementing something on CSS grid
(grid-amount size amount)
Percentage on classical grid. Size is the amount of blocks in a grid
Percentage on classical grid. Size is the amount of blocks in a grid
(inlet text text-class)
Will change first letter in hiccup form
Will change first letter in hiccup form
(parse-sorting-field input)
Will parse sorting field like this: (year | -year) (price | -price) (age | -age) e.t.c. (parse-sorting-field "-age") => {:inverse? true, :field :age}
Will parse sorting field like this: (year | -year) (price | -price) (age | -age) e.t.c. (parse-sorting-field "-age") => {:inverse? true, :field :age}
(style link)
Will make style in a Hiccup syntax
Will make style in a Hiccup syntax
(styles-map->string data)
Will turn a map style of CSS into an inline style of CSS
Will turn a map style of CSS into an inline style of CSS
(yes field & body)
(yes [] [:hello]) => nil (yes "blab" [:hello]) => [:hello]
(yes [] [:hello]) => nil (yes "blab" [:hello]) => [:hello]
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close