Files
buuh/examples/http/views/main.js
T
2016-05-12 15:42:44 +07:00

15 lines
373 B
JavaScript

const pathname = require('pathname-match')
const choo = require('../../../')
module.exports = function (nav, mailbox) {
return function (params, state, send) {
return choo.view`
<main class="app">
<span>URL: ${pathname(state.location) || '/'}</span>
${nav(params, state, send)}
${mailbox(params, state, send)}
</main>
`
}
}