example-mailbox: v1

This commit is contained in:
Yoshua Wuyts
2016-05-12 13:49:29 +07:00
parent 3655c488c2
commit 049d8f0cee
11 changed files with 151 additions and 1 deletions
+23
View File
@@ -0,0 +1,23 @@
const pathname = require('pathname-match')
const choo = require('../../../')
module.exports = function (nav) {
return function (params, state, send) {
return choo.view`
<main class="app">
<span>URL: ${pathname(state.location) || '/'}</span>
${nav(params, state, send)}
<section>
<table>
<tr>
<th>Data</th>
<th>Subject</th>
<th>From</th>
<th>To</th>
</tr>
</table>
</section>
</main>
`
}
}