Created
May 3, 2010 04:03
-
-
Save spullara/387736 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var sys = require("sys"); | |
var fab = require('./lib/fab'); | |
var mu = require('./lib/Mu/lib/mu'); | |
mu.templateRoot = './templates'; | |
(fab) | |
(fab.listen, 0xFAB) | |
(/^\/$/) | |
(function () { | |
var send = this; | |
mu.render("helloworld.html", {title:"Test", who:"world"}, {}, function (err, output) { | |
if (err) { | |
throw err; | |
} | |
output.addListener('data', function (c) { | |
send({body:c}); | |
}).addListener('end', function () { | |
send(); | |
}); | |
}); | |
}) | |
(404); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment