Skip to content

Instantly share code, notes, and snippets.

@dshaw
Last active January 3, 2016 14:59
Show Gist options
  • Save dshaw/8479462 to your computer and use it in GitHub Desktop.
Save dshaw/8479462 to your computer and use it in GitHub Desktop.
var jade = require('jade')
, data = require('./data.json')
;
var header = new Buffer('HTTP/1.1 200 OK\r\n\r\n');
var server = require('net').createServer(function(conn) {
conn.write(header);
conn.close();
}).listen(8000);
//console.log(jade.renderFile('vast.jade', { pretty: true, data: data }));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment