UNPKG

wasm-metering

Version:

injects metering into webassembly binaries

16 lines (14 loc) 304 B
var h = require('hyperscript') var hyperx = require('../') var hx = hyperx(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) { return hx`<b>${w}</b>\n` })} </div>` console.log(tree.outerHTML)