Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eliot-akira/html-render
HTMLElement render method with incremental DOM update
https://github.com/eliot-akira/html-render
Last synced: about 1 month ago
JSON representation
HTMLElement render method with incremental DOM update
- Host: GitHub
- URL: https://github.com/eliot-akira/html-render
- Owner: eliot-akira
- Created: 2015-12-26T04:33:47.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2015-12-26T10:35:41.000Z (almost 9 years ago)
- Last Synced: 2024-09-09T14:51:52.480Z (2 months ago)
- Language: JavaScript
- Size: 6.84 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# HTML render
HTMLElement render method with incremental DOM update
## Include
The following adds a `render` method to HTMLElement.
~~~javascript
require('html-render');
~~~## Use
~~~javascript
var app = document.body.querySelector('app-root');app.render( html );
app.render( newHtml );
~~~This updates the DOM efficiently by rendering only the difference.
## Based on
[Incremental DOM](https://github.com/google/incremental-dom)
[html-parse-stringify](https://github.com/henrikjoreteg/html-parse-stringify)
[html2IDOM](https://github.com/ericponto/html2IDOM) (light version)