{"action":"created","issue":{"url":"https://api.github.com/repos/pillarjs/finalhandler/issues/7","labels_url":"https://api.github.com/repos/pillarjs/finalhandler/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/pillarjs/finalhandler/issues/7/comments","events_url":"https://api.github.com/repos/pillarjs/finalhandler/issues/7/events","html_url":"https://github.com/pillarjs/finalhandler/pull/7","id":95543370,"number":7,"title":"Adds new render option","user":{"login":"gtomitsuka","id":10295671,"avatar_url":"https://avatars.githubusercontent.com/u/10295671?v=3","gravatar_id":"","url":"https://api.github.com/users/gtomitsuka","html_url":"https://github.com/gtomitsuka","followers_url":"https://api.github.com/users/gtomitsuka/followers","following_url":"https://api.github.com/users/gtomitsuka/following{/other_user}","gists_url":"https://api.github.com/users/gtomitsuka/gists{/gist_id}","starred_url":"https://api.github.com/users/gtomitsuka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gtomitsuka/subscriptions","organizations_url":"https://api.github.com/users/gtomitsuka/orgs","repos_url":"https://api.github.com/users/gtomitsuka/repos","events_url":"https://api.github.com/users/gtomitsuka/events{/privacy}","received_events_url":"https://api.github.com/users/gtomitsuka/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/pillarjs/finalhandler/labels/pr","name":"pr","color":"006b75"}],"state":"open","locked":false,"assignee":{"login":"dougwilson","id":67512,"avatar_url":"https://avatars.githubusercontent.com/u/67512?v=3","gravatar_id":"","url":"https://api.github.com/users/dougwilson","html_url":"https://github.com/dougwilson","followers_url":"https://api.github.com/users/dougwilson/followers","following_url":"https://api.github.com/users/dougwilson/following{/other_user}","gists_url":"https://api.github.com/users/dougwilson/gists{/gist_id}","starred_url":"https://api.github.com/users/dougwilson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dougwilson/subscriptions","organizations_url":"https://api.github.com/users/dougwilson/orgs","repos_url":"https://api.github.com/users/dougwilson/repos","events_url":"https://api.github.com/users/dougwilson/events{/privacy}","received_events_url":"https://api.github.com/users/dougwilson/received_events","type":"User","site_admin":false},"milestone":null,"comments":7,"created_at":"2015-07-16T22:19:25Z","updated_at":"2015-07-17T15:08:36Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/pillarjs/finalhandler/pulls/7","html_url":"https://github.com/pillarjs/finalhandler/pull/7","diff_url":"https://github.com/pillarjs/finalhandler/pull/7.diff","patch_url":"https://github.com/pillarjs/finalhandler/pull/7.patch"},"body":"I developed this function for myself because I need it for a project I'm working on, but it basically adds a way for `finalhandler`'s users' to do custom rendering of their views.\r\n\r\nThe `test/test.js` passes, and I think the README.md and test/test.js show how to work with it properly."},"comment":{"url":"https://api.github.com/repos/pillarjs/finalhandler/issues/comments/122305373","html_url":"https://github.com/pillarjs/finalhandler/pull/7#issuecomment-122305373","issue_url":"https://api.github.com/repos/pillarjs/finalhandler/issues/7","id":122305373,"user":{"login":"gtomitsuka","id":10295671,"avatar_url":"https://avatars.githubusercontent.com/u/10295671?v=3","gravatar_id":"","url":"https://api.github.com/users/gtomitsuka","html_url":"https://github.com/gtomitsuka","followers_url":"https://api.github.com/users/gtomitsuka/followers","following_url":"https://api.github.com/users/gtomitsuka/following{/other_user}","gists_url":"https://api.github.com/users/gtomitsuka/gists{/gist_id}","starred_url":"https://api.github.com/users/gtomitsuka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gtomitsuka/subscriptions","organizations_url":"https://api.github.com/users/gtomitsuka/orgs","repos_url":"https://api.github.com/users/gtomitsuka/repos","events_url":"https://api.github.com/users/gtomitsuka/events{/privacy}","received_events_url":"https://api.github.com/users/gtomitsuka/received_events","type":"User","site_admin":false},"created_at":"2015-07-17T15:08:36Z","updated_at":"2015-07-17T15:08:36Z","body":"First of all, for this one project I am using finalhandler() directly.\r\n\r\nNow, the render works for both errors and 404s. When calling `done()` without an error, the message appears:\r\n\r\n![screen shot 2015-07-17 at 12 04 48 pm](https://cloud.githubusercontent.com/assets/10295671/8750139/16653e66-2c7c-11e5-9dbd-6cc9e2d0f2e4.png)\r\n\r\nI use finalhandler for both errors and 404 messages. With the render option \r\n\r\nI thought of it because I wanted a catcher for 404 errors, but it's not _only_ for 404 errors. With the render function people will be able to actually use the Express/Connect error messages(like Express' try catch) on production."}}