Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Page
Library
Module
Module type
Parameter
Class
Class type
Source
The implementation is relatively naïve and opinionated, but should be sufficient for most use cases. It has largely been imported from YOCaml (which provides its own implementation) and is small, with no dependencies, making it easy to use with Js_of_ocaml and Mirage. The implementation attempts to intelligently merge separators and is fairly configurable. A more ambitious implementation is provided by the Slug package.
# "Hello world, this is a slug héhéhé"
|> Slugline.from_string
|> Slugline.to_string ;;
- : string = "hello-world-this-is-a-slug-hehehe"