Files
buuh/examples/mailbox/views/main.js
T

15 lines
373 B
JavaScript
Raw Normal View History

2016-05-12 12:59:27 +07:00
const pathname = require('pathname-match')
const choo = require('../../../')
2016-05-12 15:12:50 +07:00
module.exports = function (nav, mailbox) {
2016-05-12 12:59:27 +07:00
return function (params, state, send) {
return choo.view`
<main class="app">
2016-05-12 15:12:50 +07:00
<span>URL: ${pathname(state.location) || '/'}</span>
2016-05-12 12:59:27 +07:00
${nav(params, state, send)}
2016-05-12 15:12:50 +07:00
${mailbox(params, state, send)}
2016-05-12 12:59:27 +07:00
</main>
`
}
}