package containers
A modular, clean and powerful extension of the OCaml standard library
Install
Dune Dependency
Authors
Maintainers
Sources
v3.12.tar.gz
md5=d74226924b65697a8558eb34a6074417
sha512=d5094e362f9ad7fe91aa060ef5c9805812cf888b326f0f0070f929205a83169a64c78dfce58a2ec0da77555b21c69a1f287fb38da9867cd6b16507f6c20fa666
doc/containers.pp/Containers_pp/Ext/index.html
Module Containers_pp.Ext
Source
Extension node.
Custom nodes can be used to add user-defined behavior to the rendered output. For example, documents might be annotated with ANSI-terminal colors, or with HTML tags.
Source
type 'a t = {
pre : Out.t -> 'a -> unit;
(*Printed before the wrapped value.
*)post : Out.t -> 'a -> unit;
(*Printed after the wrapped value.
*)
}
An extension is a custom document node. It takes a value of type 'a
, and a document d
, and can output what it wants based on the custom value before and after d
is printed.
The extension is considered to have width 0
.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>