Files: d47c6e10a9fe8fb04aee3e2736ee04a7f2896003 / about / html / link.js
338 bytesRaw
1 | var h = require('mutant/h') |
2 | var nest = require('depnest') |
3 | |
4 | exports.needs = nest({ |
5 | 'about.obs.name': 'first' |
6 | }) |
7 | |
8 | exports.gives = nest('about.html.link') |
9 | |
10 | exports.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