You can search for identifiers within the package.
in-package search v0.2.0
yurt
Yurt.Route
Routes are used to build URLs with types variables
Route
type route = [
| `String of string
| `Int of string
| `Float of string
| `Path of string
| `Match of string * string
| `Route of route list
]
exception Invalid_route_type
Invalid_route_type is raised when a value of the wrong type is requested
Invalid_route_type
type params = (string, route) Hashtbl.t
Param map
val to_string : route -> string
Convert a route to string
val to_regexp : route -> Str.regexp
Convert a route to regular expressions
val of_string : string -> route
Create a Route from the given string
val params : route -> string -> params
Get parameters from a route
val string : params -> string -> string
Get a string parameter
val int : params -> string -> int
Get an int parameter
val float : params -> string -> float
Get a float parameter
val to_json : params -> Ezjsonm.t
Convert parameters to JSON