package vif
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page
A simple web framework for OCaml 5
Install
dune-project
Dependency
Authors
Maintainers
Sources
vif-0.0.1.beta4.tbz
sha256=0327abf4e7434e5de402661cc8c29c0539501269401670fed773b0dfc14e26aa
sha512=1ff5dddecf25b41986ea629bda336a990800db8410498682bf96af2b1afab74ae57172ee8d41087f131c9ceeb3255c96351668664e36c6815a249157afd05a5d
doc/vif.core/Vif_core/Route/index.html
Module Vif_core.RouteSource
Top level atoms are specialized for path and query, see documentation.
Extraction.
Extracting atom is just a matter of following the witness. We just need to take care of counting where we are in the matching groups.
Source
val extract_path :
'f 'x 'r. original:string ->
('f, 'x) re_path ->
Re.Group.t ->
('x -> 'r) ->
'f ->
'rSince path is in reversed order, we proceed by continuation.
Query are in the right order, we can proceed in direct style.
Multiple match
Source
type 'socket request = {extract : 'c 'a. [ `CONNECT | `DELETE | `GET | `HEAD | `OPTIONS | `POST | `PUT | `TRACE | `Other of string ] option -> ('c, 'a) Vif_core__.Vif_type.t -> ('socket, 'c, 'a) Vif_core__.Vif_request.t option;
}Source
val match_ :
((Re.re * 'a) Vif_core__.Vif_method.Map.t * (Re.re * 'a)) ->
[ `CONNECT
| `DELETE
| `GET
| `HEAD
| `OPTIONS
| `POST
| `PUT
| `TRACE
| `Other of string ] ->
string ->
(Re.Group.t * 'a) option sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page