choo: add server rendering

This commit is contained in:
Yoshua Wuyts
2016-05-22 02:06:46 +09:00
parent ffca94d59a
commit 4084775c8c
6 changed files with 150 additions and 5 deletions
+10
View File
@@ -0,0 +1,10 @@
const choo = require('../../../')
module.exports = function (params, state, send) {
const message = state.message
return choo.view`
<section>
<h1>${message}</h1>
</section>
`
}