package wtr
Well Typed Router
Install
Dune Dependency
Authors
Maintainers
Sources
wtr-v2.0.0.tbz
sha256=6242f9bec932d49f41957a05b2ddd826f38ef05ed14d87737962585143cf02aa
sha512=960a8bc6dad6d40bb248f25ec1560993c14b52fb928542ed3b5dc72842413101492ca7e0a708448aa6f3207a7c201073782fe045964d6a398cf2a9051a865092
CHANGES.md.html
v2.0.0 2021-08-02
Convert
assert
based tests toppx_expect
testsSplit README.md
mdx
test from testsBREAKING CHANGE: ppx
{%wtr| /home/about |}
now produces a function expecting a handler rather than auri
. Demos and tests have been updated to reflect this change.BREAKING CHANGE: remove functions
pp_uri
and>-
.BREAKING CHANGE:
create
function now mandates[route list list]
to create a router. Hopefully this should not cause much breakage since the%wtr
ppx produces this value.NEW :
%wtr
ppx now allows specifying HTTP methods along with the uri route. A new typemeth
has been added to represent all standard HTTP methods.NEW : Add
Wtr.pp_route
,Wtr.pp_method'
andWtr.pp
to pretty print a route, method and a router respectively.
v1.0.0 2021-05-11 UK
First release.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>