ocaml-gist is a tool to create interactive gist experiences for the web. It
aims to be easy to use by both implementers and users.
No server required for compilation 🐫
Autocomplete support 🐫
Type info on hover 🐫
This is a gist with support for the OCaml standard library.
OCaml 4.04.2
A recent Node and NPM version
opam install ocaml-gist
Btw. we'd love to know if you are using ocaml-gist.
This is an example of a create-gist
rule for jbuilder that invokes
the og-create
command. The resulting gist has support for the OCaml stdlib
and Base library. It also has a dependency on a local foo library.
The used arguments have the following meaning:
(alias (
(name create-gist)
(deps (foo.cma))
(action (progn
(run og-create
--input input_base
--output output_base
--dependency foo.cma
--lib stdlib
--lib +base/runtime.js
--lib base
--doc
)
))
))
--input (a directory with ml files)
--output (output directory)
--dependency (string)
--lib (string)
--doc
This is an example of using the og-create
command directly to create a gist experience
that supports LWT.
og-create
--input input_lwt
--output output_lwt
--dependency foo.cma
--lib stdlib
--lib result
--lib lwt
--lib js_of_ocaml-lwt
--lib js_of_ocaml