Functions for creating URL safe slugs from text strings.
Functions for creating URL safe slugs from text strings.
(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`
(slugify resource-name)
(slugify resource-name max-length)
(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`.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close