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

17 lines
436 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`
2016-05-12 19:33:52 +07:00
<main class="mw5 mw7-ns center cf">
<span class="fl mt4 w-100 f4 b">
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>
`
}
}