Module Js_of_ocaml.Sys_js
Javascript specific Sys functions.
Io.
Pseudo filesystem.
val mount_point : unit -> string listval unmount : path:string -> unitval mount : path:string -> (prefix:string -> path:string -> string option) -> unitRegister a callback to the
pathto dynamically load missing files. Whenever a file is missing inpath, the callback is used to optionally get the content of the file.mount ~path fregister the callbackfto the pathpath. The callbackfreceives(prefix,suffix)where:prefixis the path the function has been registered to.Filename.contact prefix suffixis the absolute filename .
val read_file : name:string -> stringread_file namereturns the content of the filename. RaiseNot_foundif the file does not exists.
Information.
val js_of_ocaml_version : stringjs_of_ocaml_versionis the version of Js_of_ocaml. It is a string of the form"major.minor[.patchlevel][+additional-info]", wheremajor,minor, andpatchlevelare integers, andadditional-infois an arbitrary string. The[.patchlevel]and[+additional-info]parts may be absent.