Files: 49c6e5459b68f2a30bcecf7727b8c9a99cfe4e79 / example / cats / pages / one.js
348 bytesRaw
1 | const { get } = require('libnested') |
2 | |
3 | module.exports = { |
4 | needs: { |
5 | inu: { html: 'first' }, |
6 | app: { modules: { layout: 'first' } } |
7 | }, |
8 | create: (api) => ({ |
9 | route: '/cat/:catId', |
10 | view: (model, dispatch) => api.app.modules.layout(model, dispatch)(api.inu.html` |
11 | <div>one cat: ${model.router.params.catId}!</div> |
12 | `) |
13 | }) |
14 | } |
15 |
Built with git-ssb-web