UNPKG

wasm-metering

Version:

injects metering into webassembly binaries

16 lines (14 loc) 329 B
var vdom = require('virtual-dom') var hyperx = require('../') var hx = hyperx(vdom.h) var title = 'world' var wow = [1,2,3] var tree = hx`<div> <h1 y="ab${1+2}cd">hello ${title}!</h1> ${hx`<i>cool</i>`} wow ${wow.map(function (w, i) { return hx`<b>${w}</b>\n` })} </div>` console.log(vdom.create(tree).toString())