Minimal http framework with the basics.
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
example
test
.gitignore
.travis.yml
Makefile
index.js
package.json
readme.md

readme.md

###Wayward - Minimal http framework with the basics.
Install: npm install wayward


###app.get() | app.post() | app.delete() | app.put() :

app.get(route, callback)

Connect style routing. More info.
###app.use():

app.use(route, middleware)

Connect style middleware. More info.
###app.listen():

app.listen(port)

Port to start app on. More info.
###res.send():

res.send(body, statusCode)

Slack lazy sending of HTTP responses. More info.
###res.render():

res.render(templateName, data)

Templating middleware for embedded javascript templates. More info
###req.session[]

req.session[key] = value
var value = req.session[key]

Only available if a secret key has been set. - app.session(opts). More info.
###app.session()

app.session(opts)

Enables the client-sessions lib with options, opts.secret is required. More info.
###app.template()

app.template(opts)

Enables EJS templating, opts.dir is required. ###app.static()

app.static(opts)

Enables static file serving, opts.dir and opts.url are required.


###Deps: Additional router documentation: https://github.com/bradleyg/obedient
Additional slack documentation: https://github.com/bradleyg/slack
Additional templating documentation https://github.com/bradleyg/masonry
Additional session documentation: https://github.com/benadida/node-client-sessions
Additional static files documentation https://github.com/jesusabdullah/node-ecstatic


###Examples: View the examples


###Tests

npm test

Build Status