kent
v1.1.3
Published
heroic web framework for node.js and the browser
Downloads
5
Readme
kent
heroic web framework for node.js and the browser
Usage
var kent = require('kent')
, app = kent()
app.serve(__dirname + '/public')
app.connect(someConnectMiddleware())
app.use(function(next) {
// kent-style middleware
})
API
Application
app.serve(path[, options])
server only
app.connect([mountPath, ]fn)
server only
app.use(fn)
app.listen(port[, fn])
server only
app.start()
client only
app.navigate(url, body, redirect)
client only
app.submit(form)
client only
app.redirect(url)
client only
app.refresh()
client only
Router
router.use(fn)
router.on(path, fn)
License
MIT, see LICENSE.md for details.