Liking cljdoc? Tell your friends :D

sweet-tooth.endpoint.page


organize-page-dataclj

(organize-page-data ent-type page)

page-paramsclj

(page-params ctx & allowed-keys)

Get pagination-related params. Includes base set of allowable params, plus whatever user specifies in allowed-keys.

Converts :page and :per-page to integer. TODO have route coerce params correctly.

Get pagination-related params. Includes base set of allowable
params, plus whatever user specifies in `allowed-keys`.

Converts `:page` and `:per-page` to integer.
TODO have route coerce params correctly.
raw docstring

page-to-newclj

(page-to-new new-ent-id page ents)

Updates current page if new entity exists in current page, otherwise returns last page

Updates current page if new entity exists in current page, otherwise
returns last page
raw docstring

PageSortFncljprotocol

Which comparison function to use

Which comparison function to use

ascclj

(asc x)

Ascending fn

Ascending fn

descclj

(desc x)

Descending fn

Descending fn
raw docstring

paginateclj

(paginate p ents)

sliceclj

(slice page per-page ents)

Get a single page of ents out of a collection

Get a single page of ents out of a collection
raw docstring

sort-fnclj

(sort-fn val sort-order)

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

× close