git ssb

0+

alanz / patchwork



forked from Matt McKegg / patchwork

Tree: e08d5a8b3a1f4197ef31f35de3e758bb2600f214

Files: e08d5a8b3a1f4197ef31f35de3e758bb2600f214 / modules / profile / html / person.js

385 bytesRaw
1var nest = require('depnest')
2var h = require('mutant/h')
3
4exports.needs = nest({
5 'about.obs.name': 'first'
6})
7
8exports.gives = nest({
9 'profile.html': ['person']
10})
11
12exports.create = function (api) {
13 return nest({
14 'profile.html': {person}
15 })
16
17 function person (id) {
18 return h('a', {classList: 'ProfileLink', href: id}, [
19 '@', api.about.obs.name(id)
20 ])
21 }
22}
23

Built with git-ssb-web