Module Brzo_b0_js_of_ocaml.Js_of_ocaml
js_of_ocaml compilation.
Js_of_ocaml
val compile : ?args:B0_std.Cmd.t -> B00.Memo.t -> byte_exe:B0_std.Fpath.t -> o:B0_std.Fpath.t -> unitcompile m ~byte_exe ~ocompiles the byte code executablebyte_exeto the JavaScript fileo.
val compile_toplevel : ?args:B0_std.Cmd.t -> B00.Memo.t -> byte_exe:B0_std.Fpath.t -> mod_names:B0_std.Fpath.t -> o:B0_std.Fpath.t -> unitcompile m ~byte_exe ~mod_names ~ocompiles the byte code executablebyte_exeto a toplevel in which the modules mentioned inmod_namesare made visible.
val link : ?args:B0_std.Cmd.t -> B00.Memo.t -> jss:B0_std.Fpath.t list -> o:B0_std.Fpath.t -> unitlink m ~jss ~olinks the JavaScript filesjssintoo.
val tty_glue : exe:B0_std.Fpath.t -> cwd:B0_std.Fpath.t -> env:B0_std.Os.Env.t -> args:string list -> stringval write_page : ?toplevel_css:bool -> ?generator:string -> ?lang:string -> ?scripts:string list -> ?styles:string list -> ?title:string -> B00.Memo.t -> o:B0_std.Fpath.t -> unitwrite_page m ~title ~owrites to fileoa full HTML document whose body contains only aB0_web.Htmlg.noscript element that entices the user, in english, to enable javascript.titledefaults to the basename ofowithout its extension, for the other arguments and more information seeB0_web.Htmlg.basic_page.toplevel_cssiftrueadds a bit of styling for an#ocamlelement that is supposed to hold a toplevel session (defaults tofalse).
val toplevel_ui_src : stringtoplevel_ui_srca simple toplevel user interface written in OCaml. That can be compiled and linked when usingcompile_toplevelto get a simple prompt.