vdom-raw

1.2.0 • Public • Published

vdom-raw

Builds raw HTML into virtual-dom syntax.

Usage

var raw = require('vdom-raw').compile;
raw(`<div><span dataBind="user.name"></span><div>`, {
    h: require('virtual-dom/h')
});

Results in

h('div', {}, [
    h('span', {dataBind: 'user.name'}, [])
])

Readme

Keywords

none

Package Sidebar

Install

npm i vdom-raw

Weekly Downloads

0

Version

1.2.0

License

ISC

Last publish

Collaborators

  • vqueiroz