example-mailbox: v5

This commit is contained in:
Yoshua Wuyts
2016-05-13 16:48:46 +07:00
parent ac73adb4bf
commit 32ae62d655
11 changed files with 169 additions and 39 deletions
+17
View File
@@ -0,0 +1,17 @@
const choo = require('../../../')
const empty = require('../elements/empty-mailbox')
const pathname = require('../elements/pathname')
const nav = require('../elements/nav')
module.exports = function () {
return function (params, state, send) {
return choo.view`
<main class="mw5 mw7-ns center cf">
${pathname(params, state, send)}
${nav(params, state, send)}
${empty(params, state, send)}
</main>
`
}
}