Files: e73bff8390f085ab1944c5d9ac4c514cbbacf355 / app / page / home.js
402 bytesRaw
1 | const nest = require('depnest') |
2 | const { h } = require('mutant') |
3 | |
4 | exports.gives = nest('app.page.home') |
5 | |
6 | exports.needs = nest({ |
7 | 'app.html.nav': 'first' |
8 | }) |
9 | |
10 | exports.create = (api) => { |
11 | return nest('app.page.home', home) |
12 | |
13 | function home (location) { |
14 | // location here can expected to be: { page: 'home' } |
15 | |
16 | return h('Page -home', [ |
17 | h('h1', 'Home'), |
18 | api.app.html.nav(), |
19 | ]) |
20 | } |
21 | } |
22 |
Built with git-ssb-web