Files: 5477cb7eccf839bf6a1c666a5a2808a6ead826f1 / about / html / link.js
334 bytesRaw
1 | var nest = require('depnest') |
2 | var { h } = require('mutant') |
3 | |
4 | exports.gives = nest('about.html.link') |
5 | |
6 | exports.needs = nest({ |
7 | 'about.obs.name': 'first' |
8 | }) |
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 | |
16 |
Built with git-ssb-web