package yocaml
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page
Core engine of the YOCaml Static Site Generator
Install
dune-project
Dependency
Authors
Maintainers
Sources
yocaml-2.7.0.tbz
sha256=89a74bd5cb37e580e45e4ed3d43b07b2cca5af9ab7f98966c48fe9730dc4af2e
sha512=ae77555570320c28c47d748e75056ccc44bb43cddf6fef70e8b556254fd809d67b915b313bd1833c28581db1fdeefbe34e81d5548744d6ecabe466ee1ef6284c
doc/yocaml/Yocaml/Slug/index.html
Module Yocaml.SlugSource
An incredibly simple (and opinionated) implementation of Slug.
The implementation is rather dirigiste, and relatively unconfigurable, but it can easily be replaced by a different implementation and is only there to make it easier to bootstrap a blog.
Types
A slug is just an alias on string.
Building slugs
Source
val from :
?mapping:(char * string) list ->
?separator:char ->
?unknown_char:char ->
string ->
tfrom str build a naive slug from a given string.
Validating slugs
Source
val validate :
?separator:char ->
?unknown_char:char ->
Data.t ->
t Data.Validation.validated_valueValidate a slug.
Source
val validate_string :
?separator:char ->
?unknown_char:char ->
string ->
t Data.Validation.validated_valueValidate a slug from a string.
Utils
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page