RespondJS
respondjs is a simple package for defining format-based HTTP responses. It is inspired
by the ´respond_to´ rails function. You can define a callback for any response MIME format.
The respondjs module will select the appropriate response format by checking the
req.params.format
value and the HTTP Accept header respectively. After a format has been
chosen, the callback registered for that format will be called.
var app = ;var respond = ; var response = ; response;