slegrand45 / examples_ocaml_vdom Goto Github PK
View Code? Open in Web Editor NEWSome code examples made with ocaml_vdom
License: MIT License
Some code examples made with ocaml_vdom
License: MIT License
is it possible to add MIT license ?
I've tried to compile your todomvc example under OCaml 4.09.1 with a recent js_of_ocaml but it did not work.
I had to rename js_of_ocaml.ppx to js_of_ocaml-ppx in build.sh, but even after that I got this error:
master/home/pad/work/EXPERIMENTS/todomvc/ocaml_vdom/todomvc $ ./build.sh
File "todomvc.ml", line 67, characters 32-43:
67 | Deriving_Json.from_string [%derive.json: t] s
^^^^^^^^^^^
Error: Deriver json does not support inline notation
js_of_ocaml: Error: Sys_error("todomvc.byte: No such file or directory")
Raised by primitive operation at file "stdlib.ml", line 398, characters 28-54
Called from file "stdlib.ml" (inlined), line 406, characters 2-47
Called from file "compiler/bin-js_of_ocaml/compile.ml", line 224, characters 19-33
Called from file "cmdliner_term.ml", line 25, characters 19-24
Called from file "cmdliner.ml", line 117, characters 32-39
Called from file "cmdliner.ml", line 147, characters 18-36
Called from file "cmdliner.ml", line 265, characters 22-48
Called from file "compiler/bin-js_of_ocaml/js_of_ocaml.ml", line 48, characters 4-225
When a todo entry is edited, the user must be able to press the escape key in order to cancel the modifications.
With Firefox 50 on FreeBSD, the escape key is correctly detected (the which
field is equal to 27) but the input is never reset to the backup value. If the escape key is replaced by the "a" key for instance, it works ok.
With Chromium 54 on FreeBSD, the escape key works correctly. Nonetheless, it seems that Chromium fires two events: a keypress
followed by a blur
. While Firefox fires only the keypress
event.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.