Skip to content

Instantly share code, notes, and snippets.

@pure
Created March 3, 2011 14:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save pure/852862 to your computer and use it in GitHub Desktop.
Save pure/852862 to your computer and use it in GitHub Desktop.
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