This is client API (go to server)

Warning: Reason support is experimental. We are looking for beta-tester and contributors.

Module Eliom_unwrap

module Eliom_unwrap : sig..end

Values of type unwrap_id are used to identify a specific unwrapper.

type unwrap_id
val id_of_int : int -> unwrap_id
val register_unwrapper : unwrap_id -> ('a -> 'b) -> unit

register_unwrapper id f register an unwrapping function f to be called when a value is marked with the id id

val unwrap_js : Js.js_string Js.t -> 'a

unwrap_js_var v execute unwrap on the content of the javascript variable v