Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Page
Library
Module
Module type
Parameter
Class
Class type
Source
ppx_expect
for testsroute
function which is an alias of @-->
and is used to connect a route pattern to a handlerSwitch to a new model for trailing slash handling. In routes 1.0.0 users needed to be careful about using /?
and //?
as the former would only match routes without a trailing slash, and the latter would enforce a trailing slash.
/?
to end routes, and it will cover both routes ending with trailing slashes and withoutMatchWithTrailingSlash
informs the user that the current target was considered a match, but that the target has an additional trailing slashnil
and trail
constructors, all routes end with nil
. The trailing slash is controlled via /?
for no trailing slash, and //?
for trailing slash. (#111)nil
unless it follows a pattern. To create a route that matches no path params, ex: "/" use empty
. (#111)Note: 0.7.2 has the same content as 0.7.1 except for a dune file change needed for bisect_ppx
This is a breaking release:
Other of string
(#58 , @sazarkin)SkipLeft
parsers.stdcompat
(#33)s
now returns the string it matches, instead of discarding it. (#29)mdx
to test examples in the readme file (#23)