Liking cljdoc? Tell your friends :D

thereisnodot.utils.html

A set of useful functions related to HTML processing

A set of useful functions related to HTML processing
raw docstring

backletclj

(backlet text class-item)

Will change last letter in hiccup form

Will change last letter in hiccup form
sourceraw docstring

catchercljmacro

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

gen-layout-classclj

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

grid-amountclj

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

html->unescaped-htmlclj

(html->unescaped-html some-str)
source

inletclj

(inlet text text-class)

Will change first letter in hiccup form

Will change first letter in hiccup form
sourceraw docstring

parse-sorting-fieldclj

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

styleclj

(style link)

Will make style in a Hiccup syntax

Will make style in a Hiccup syntax
sourceraw docstring

styles-map->stringclj

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

yescljmacro

(yes field & body)

(yes [] [:hello]) => nil (yes "blab" [:hello]) => [:hello]

(yes [] [:hello]) => nil
(yes "blab" [:hello]) => [:hello]
sourceraw docstring

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

× close