krumelur
v0.0.3
Published
This is a mix of Virtual-DOM, HTML-TO-VDOM, that applies DOM "diffs" without any server configuration—it just needs plain old HTML.
Downloads
4
Readme
Krumelur
With Krumelur it's possible to update a DOM elements with new html content, it does so by using a virtual-dom to patch the element with changes from the new html and the current representation in the element.
API
Krumelur.apply(html, element)
Example
id = document.getElementById("body")
Krumelur.apply("<body id='body'><span>new body</span></body>",id)
Development
Setup
npm install
Build
npm run build
generate public/krumelur.js
npm run build_minified
generate public/krumelur.min.js
Test
bundle install
Ruby sinatra webserver is used to host the test files in ./views
rackup