This is client API (go to server)

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_var : string -> 'a

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