I dont know much about node.Is there anything I can do to iterate the objects without having to require it everytime
folderOrder = ['routes', 'models','fixtures', 'views', 'controllers']
require 'routes/posts_route'
require 'routes/post_route'
require 'models/post'
Is there anyway all the new files I create in folders routes and models will be automatically required without having to require each one of them. My case for this example is https://github.com/abhayathapa/ember-blogger/blob/master/app/initialize.coffee
Any help will be greatly appreciated. I have tried the answers in node.js require all files in a folder? but I get the same --- Cannot find module "fs"