Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
Route
s are used to build URLs with types variables
type route = [
| `String of string
| `Int of string
| `Float of string
| `Path of string
| `Match of string * string
| `Route of route list
]
Invalid_route_type
is raised when a value of the wrong type is requested
type params = (string, route) Stdlib.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 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