ska80 / idris-vdom

Virtual DOM in pure Idris

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

idris-vdom

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.

To do

  • 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

About

Virtual DOM in pure Idris

License:MIT License


Languages

Language:Idris 95.1%Language:Makefile 3.0%Language:HTML 1.9%