Skip to content

azer/html-patcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

html-patcher

Virtual DOM Diff & Patch with HTML Templates. Based on the virtual-dom on NPM

Install

$ npm install html-patch

Usage

A simple app to show epoch time every second:

var patcher = require('html-patcher')

var patch = patcher(document.body, render());

setInterval(function () {
  patch(render())
}, 1000);

function render () {
  return '<h1>' + Date.now() +  '</h1>';
}

See test.js for more info.

About

Virtual DOM Diff & Patch with HTML Templates

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published