1.2.0 • Published 8 years ago
vdom-raw v1.2.0
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'}, [])
])