stantonwjones / nails-boilerplate

A node webserver boilerplate mimicking Rails structure
0 stars 0 forks source link

Event Driven Controllers #1

Closed stantonwjones closed 12 years ago

stantonwjones commented 12 years ago

add an eventer and corresponding accessor methods. should be able to support events like 'error', 'not found', '404', '500', 'render', and 'redirect' events.

Pass response object to controllers so that the router can be garbage collected faster

render event would handle writing to the response

stantonwjones commented 12 years ago

basic controller events implemented. has default 404, error, and 500 events.