git ssb

10+

Matt McKegg / patchwork



Tree: d844bc0c8c3b568c6dcd4e3b19afda5b97e22231

Files: d844bc0c8c3b568c6dcd4e3b19afda5b97e22231 / modules / sheet / display.js

465 bytesRaw
1var h = require('mutant/h')
2var nest = require('depnest')
3
4exports.gives = nest('sheet.display')
5
6exports.create = function () {
7 return nest('sheet.display', function (handler) {
8 var {content, footer} = handler(done)
9
10 var container = h('div', {className: 'Sheet'}, [
11 h('section', [content]),
12 h('footer', [footer])
13 ])
14
15 document.body.appendChild(container)
16
17 function done () {
18 document.body.removeChild(container)
19 }
20 })
21}
22

Built with git-ssb-web