Permalink
Browse files

Update to latest node and include haml and note-router as files and n…

…ot symlinks
  • Loading branch information...
1 parent 10e36e6 commit 95d838d39120af526f7c726610c88f9618348bab @creationix committed Dec 16, 2009
Showing with 797 additions and 8 deletions.
  1. +7 −6 dinmaker.js
  2. +0 −1 haml.js
  3. +399 −0 haml.js
  4. +0 −1 http_server.js
  5. +391 −0 node-router.js
View
@@ -1,6 +1,7 @@
-node.mixin(require('/utils.js'));
-var server = require("http_server.js");
-var haml = require("haml.js");
+process.mixin(require('sys'));
+var server = require("./node-router");
+var haml = require("./haml");
+var file = require("file");
var listeners = {};
var messages = [[Date.now(), 'System', 'Chat Server Started Up']];
@@ -49,9 +50,9 @@ server.get(/^(\/.+\.(?:jpg|js|css|png|ico|tci))$/, function (req, res, path) {
// Render the login window
server.get(/^\/$/, function (req, res) {
- haml.render({}, 'interface.haml', function (html) {
- res.simpleHtml(200, html);
- });
+ file.read('interface.haml').addCallback(function (text) {
+ res.simpleHtml(200, haml.render(text));
+ });
});
View
Oops, something went wrong.

0 comments on commit 95d838d

Please sign in to comment.