Raynos / http-framework

A web framework based purely on require('http')
MIT License
523 stars 47 forks source link

Demonstrate `error-page` #7

Open Raynos opened 10 years ago

Raynos commented 10 years ago

@isaacs has an error-page module.

I should probably write an alternative error-pages example demonstrating usage of it.

@isaacs do you have any suggestions for an idiomatic example ? Maybe it's easier if you add an example to the error-page module and I just put some links to it.

isaacs commented 10 years ago

I actually am not super happy with my error-page module. If you wrote an alternative approach that was not so tied to Templar and req/res decoration, I'd probably just give you the module name and port npmjs.org to use that instead.

Raynos commented 10 years ago

@isaacs I have a demonstration of how I do error-pages in this example.

It's kind of baked into the router as is. Not sure how to make it more of a module.