package wtr
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page
Module WtrSource
URI
('a, 'b) uri represents a URI - both the path and query, e.g. /home/about/, /home/contact, /home/contact?name=a&no=123 etc.
A uri is created via usage of wtr.ppx.
pp_uri fmt uri pretty prints uri on to fmt.
Route
'c route is a uri and its handler. 'c represents the value returned by the handler.
p >- route_handler creates a route from uri p and route_handler.
Router
'a t represents a Trie based router.
match t uri matches a route to uri, executes its handler and returns the computed value. None is returned if uri is not matched.
URI Decoder
Represents a uri component decoder, such as :int, :float, :bool etc.
All user defined decoders conform to the module signature decoder.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page