git ssb

7+

dinoworm ๐Ÿ› / patchcore



Tree: 531b55a224c7f5a8f794c64f2d60803fdfba8df9

Files: 531b55a224c7f5a8f794c64f2d60803fdfba8df9 / about / html / link.js

338 bytesRaw
1var h = require('mutant/h')
2var nest = require('depnest')
3
4exports.needs = nest({
5 'about.obs.name': 'first'
6})
7
8exports.gives = nest('about.html.link')
9
10exports.create = function (api) {
11 return nest('about.html.link', function (id, text = null) {
12 return h('a', {href: id, title: id}, text || ['@', api.about.obs.name(id)])
13 })
14}
15

Built with git-ssb-web