Conversation
|
I've tried to update the PR with the latest change from jsoo ocsigen/js_of_ocaml#2086 (see branch https://github.com/hhugo/gen_js_api/tree/runtime-primitives-bindings-hh). |
|
This new feature needs to be documented |
I think you just need to replace the occurrences of |
|
@hhugo I cherry-picked your branch, adapted the PR and document the new features, I'll wait ocsigen/js_of_ocaml#2086 to merge this and make a new release of gen_js_api. |
ocsigen/js_of_ocaml#2086 has been merged ! @hhugo: can we expect a release of JSOO soon? |
|
Gentle reminder |
|
Gentle ping |
|
Bump |
|
@smorimoto thanks for the ping. Now that |
Description
This PR adds support for a new attribute [@js.runtime "string"] that allows bindings a js_of_ocaml pritimitive using
Jsoo_runtime.Sys.external_from ocsigen/js_of_ocaml#2086For instance:
expands to
I also added an extension of the existing "js.scope" attribute by adding an "@" to the parameter you can refer to a runtime primitive.
Example:
expands to