Liking cljdoc? Tell your friends :D

oc.lib.slugify

Functions for creating URL safe slugs from text strings.

Functions for creating URL safe slugs from text strings.
raw docstring

find-available-slugclj

(find-available-slug name taken)

Create a slug from name but find alternatives if the resulting slug is part of the set given as taken

Create a slug from `name` but find alternatives
if the resulting slug is part of the set given as `taken`
raw docstring

max-slug-lengthclj


slugifyclj

(slugify resource-name)
(slugify resource-name max-length)

valid-slug?clj

(valid-slug? slug)

Return true if the specified slug is potentially a valid slug (follows the rules), otherwise return false.

Return `true` if the specified slug is potentially a valid slug (follows the rules), otherwise return `false`.
raw docstring

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

× close