Module Uritemplate
module Template : sig ... end
module Parser : sig ... end
module Expansion : sig ... end
module Expansion_type : sig ... end
type variable
=[
|
`String of string
|
`List of string list
|
`Assoc of (string * string) list
]
The type of a variable that can be templated
val template_uri : template:string -> variables:(string * variable) list -> string
Templates the given string using the provided variables. Compliant to level 4. See RFC6570
val template_uri_with_strings : template:string -> variables:(string * string) list -> string
A shorthand for template_uri when all variables are single strings