WardCunningham/Smallest-Federated-Wiki — pull request #62 by nickn (2011-12-10 10:29:35+00:00)
Title: Porting the server to express in coffeescript on node

Hey guys, I'm working on porting the server from Sinatra to Express, this pull request is a mostly working prototype with simple file io. It still needs quite a lot of work on the details, but the biggest problem is that it uses static HTML and CSS instead of rendering from templates. I've copied the hand edited versions I'm using to /client temporarily, hopefully won't need them for long.

Any thoughts on what to do about the templates? Unfortunately Haml can't be used directly in node, there are haml js implementations that aren't that different, and jade, which is the node/express evolution of haml, as well as other template options which aren't really native to either framework, but may be workable in both like mustache/handlebars. Or I could try to adapt the client side buildPage and not worry about templates. I like the idea of not having to maintain different templates for parallel implementations, but I don't really have any clear solutions.

thanks,
--nick