0.0.3 • Published 8 years ago

krumelur v0.0.3

Weekly downloads
1
License
Apache
Repository
github
Last release
8 years ago

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

Live demo

demo

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago