example-mailbox: v3

This commit is contained in:
Yoshua Wuyts
2016-05-12 19:33:52 +07:00
parent 94e8073af1
commit 5219fbafca
6 changed files with 80 additions and 31 deletions
+4 -2
View File
@@ -4,8 +4,10 @@ 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>
<main class="mw5 mw7-ns center cf">
<span class="fl mt4 w-100 f4 b">
URL: ${pathname(state.location) || '/'}
</span>
${nav(params, state, send)}
${mailbox(params, state, send)}
</main>