WardCunningham/Smallest-Federated-Wiki — pull request #69 by nickn (2011-12-16 08:45:00+00:00)
Title: 8 down

The biggest change is that server/express/server.coffee now accepts command line arguments. It added a dependency (optimist.js) but seems to be a clean way to set the args. Test port has been changed to 33333, as an arbitrary port that isn't the default, so you don't destroy stuff in the normal /data with tests accidentally as easily. Added the command line to start the server for testing to server/express/ReadMe.md. 8/16 tests still fail, but it's moving along.

Favicons are working, but ugly. This is one of the areas a direct port may not have been the best approach, I'll take a look at it again soon unless anyone has any advice. There is a 0.1 second setTimeout because it couldn't send the file directly after it was written for some reason. The HSV to RGB converter was heavily inspired by a utility function in less.js. I'm not sure if it's enough that it needs to be sited in source, and if so how. https://github.com/cloudhead/less.js/blob/master/lib/less/functions.js#L15

I rewrote some of the pages.coffee interface in an attempt to make it more straightforward. Passing the options object around didn't seem to be the best solution. Locating default-data works in the default setup, but not the general sense.

Think that's it for this one.
--nick