Skip to content

brandondyck/idris-vdom

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

76 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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