const nest = require('depnest') const { h } = require('mutant') exports.gives = nest('main.html.error') exports.create = function (api) { return nest('main.html.error', error) function error (err) { return h('Error', [ h('header', err.message), h('pre', err.stack) ]) } }