Re:Ask HN: How do you write clean node.js code?
by cezary on Wednesday May 11, 2011 @10:03PM
(#2539236)
> - Break up your project into libraries. In many cases the very basic examples do not break out the code appropriately for simplicity. However, there are some great examples within express source (i can't remember the exact name) that organize web applications routes into multiple files (and modules).
Sounds like route separation: https://github.com/visionmedia/express/tree/master/examples/...