1.1.3 • Published 9 years ago

kent v1.1.3

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

kent

experimental

heroic web framework for node.js and the browser

Usage

NPM

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.