Created
March 3, 2011 14:43
-
-
Save pure/852862 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 http = require('http'), | |
fs = require('fs'), // to load html/js templates | |
window = require("jsdom").jsdom().createWindow(), // DOM/BOM | |
jQuery = require('jquery'), // for selectors | |
$p = require('pure'), | |
templates = {}; | |
http.createServer(function (req, res) { | |
res.writeHead(200, {'Content-Type': 'text/html'}); | |
res.end('jQuery: ' + typeof(jQuery) + ' - pure: ' + typeof($p)); | |
}).listen(1234, "127.0.0.1"); | |
console.log('Server running at http://127.0.0.1:1234/'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment