package yocaml
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=fddf61500e828ac88d86ba982084cc817299302082a6e797b36787ff18235ec2
sha512=8b71a8cecd3e101df55eef0bba7a24d4dde9d66b5ecedd9f6d55834fcdc8d33fd875092ca73a398e1715664caee06cdc1bdb1b4da85bff0a687faac5c0445023
doc/yocaml/Yocaml/Metadata/index.html
Module Yocaml.MetadataSource
Metadata validation
Data validation tools.
A type that describes validated metadata.
Helper for Yocaml.Required.DATA_READABLE.neutral.
val validate :
(module Required.DATA_PROVIDER) ->
(module Required.DATA_READABLE with type t = 'a) ->
string option ->
'a validatedvalidate (module Provider) (module Readable) opt_str Validates an optional string described in the syntax described by the Provider module using the validation function described by the Readable module. The function uses Readable.neutral as a fallback if the string is null.
Metadata extraction
A set of functions for extracting metadata from a read document.
Extraction strategy
Defines the extraction strategy for a set of metadata.
There are several strategies for describing how to separate metadata from the actual content, but it is also possible to provide your own implementation using the Custom constructor.
Define a regular strategy, using 3 char as a delimiter.
Define the front-matter delimiter.
Define a custom extraction strategy.
Extraction
extract_from_content ~strategy content Attempts to extract metadata from a document using a defined strategy.