Eliom.Syntaxval to_poly : 'a -> Ocsigen_lib_base.polyUsed by the PPX to serialize injection values.
val client_value : ?pos:Lib.pos -> string -> 'args -> 'a Client_value.tRegisters a client value datum for the next server section when executed in a global_data (cf. Syntax.set_global) or in the request_data when executed in a request.
All client values created between set_global true and set_global false are considered global client values (cf. the manual).
Returns whether client values created in the current context should be considered global
Called at the end of each server or shared section. The argument identifies the compilation unit.
Adds the list of recently registered Runtime.client_value_datums into the queue of server section data of the compilation unit (Lib_base.compilation_unit_global_data).
Called in parallel with Client.Syntax_helpers.close_server_section.
val close_client_section :
string ->
(int * Ocsigen_base.Lib.poly * Lib.pos * string option) list ->
unitCalled at the end of every client or shared section. The first argument identifies the compilation unit. The second is the list of novel injections in that section.
Adds a list of Lib_base.injection_datums into the queue of client section data of the compilation unit (Lib_base.compilation_unit_global_data).
Called in parallel with Client.Syntax_helpers.open_client_section.
Convert any value to a Runtime.escaped_value for usage in the args argument to Syntax.client_value.