Virtual DOM in pure Idris. Only works with the JavaScript backend, of course.
The Idris test harness only works with the C backend. To run tests,
run make test
, open vdom-test.html
in a browser that
allows local JavaScript, and check the JavaScript console.
- Naïve renderer
- Event listeners on nodes
- Properties on nodes
- Event listener options
- Use diffing renderer that sets listeners only once per node
- Allow rendering on any root element, not just
<body>
- Write some tests already
- Allow updating listeners when diffing
- Clean up the API