Re:Xp - agile programming tools in Coffeescript
by reddittor on Tuesday April 05, 2011 @06:34AM
(#2410398)
node-static can be used as a "middleware". Here's an example of it being used in Stack: https://github.com/Marak/bugger/blob/master/lib/stack/static...
So, here's a question: I've noticed that the nodejitsu guys usually use Cloudhead's node-static for static file serving. On the other hand, I usually use Connect's staticProvider. Why do they use node-static over staticProvider? Also, can node-static be used as Connect middleware? Given that fileServer.serve seems to take "req" and "resp" arguments it would seem so, but I also see it being used with the stock http interface in all the examples.