How to add a Javacript script?

If you have client-side programs on your website, you can use Eliom's client-server features, that will compile client side parts to JS using Ocsigen Js_of_ocaml, and include automatically the script in the page. But in some cases you may also want to include yourselves external JS scripts.

Include the script on the html header

Javascript scripts are included in the header using the js_script function (defined in Error a_api: invalid ocaml id "Eliom_content.Html.D").

open Eliom_content.Html.D (* for make_uri an js_script *)

js_script
     ~uri:(make_uri