var html = require('./html') var app = require('./')() app.model(function (state, bus) { state.count = 0 bus.on('increment', function (count) { state.count += count bus.emit('render') }) }) app.router([ '/', mainView ]) app.mount('body') function mainView (state, emit) { return html`