Brzo_b0_js_of_ocaml.Js_of_ocamljs_of_ocaml compilation.
val compile :
?args:B0_std.Cmd.t ->
B0_memo.t ->
byte_exe:B0_std.Fpath.t ->
o:B0_std.Fpath.t ->
unitcompile m ~byte_exe ~o compiles the byte code executable byte_exe to the JavaScript file o.
val compile_toplevel :
?args:B0_std.Cmd.t ->
B0_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 ~o compiles the byte code executable byte_exe to a toplevel in which the modules mentioned in mod_names are made visible.
link m ~jss ~o links the JavaScript files jss into o.
val write_page :
?toplevel_css:bool ->
?generator:string ->
?lang:string ->
?scripts:string list ->
?styles:string list ->
?title:string ->
B0_memo.t ->
o:B0_std.Fpath.t ->
unitwrite_page m ~title ~o writes to file o a full HTML document whose body contains only a B0_web.Htmlg.noscript element that entices the user, in english, to enable javascript. title defaults to the basename of o without its extension, for the other arguments and more information see B0_web.Htmlg.basic_page.
toplevel_css if true adds a bit of styling for an #ocaml element that is supposed to hold a toplevel session (defaults to false).
toplevel_ui_src a simple toplevel user interface written in OCaml. That can be compiled and linked when using compile_toplevel to get a simple prompt.