all da files

This commit is contained in:
jllord
2013-05-27 13:45:59 -07:00
commit 59d3d30afa
6704 changed files with 1954956 additions and 0 deletions
+6
View File
@@ -0,0 +1,6 @@
var http = require('http');
var ecstatic = require('../lib/ecstatic')(__dirname + '/public');
http.createServer(ecstatic).listen(8080);
console.log('Listening on :8080');
+9
View File
@@ -0,0 +1,9 @@
var express = require('express');
var ecstatic = require('../lib/ecstatic');
var http = require('http');
var app = express();
app.use(ecstatic(__dirname + '/public', { showdir : true }));
http.createServer(app).listen(8080);
console.log('Listening on :8080');
+1
View File
@@ -0,0 +1 @@
<b>boop!</b>
+1
View File
@@ -0,0 +1 @@
Hello world!
+1
View File
@@ -0,0 +1 @@
hello cruel world!
Binary file not shown.

After

Width:  |  Height:  |  Size: 191 KiB

+10
View File
@@ -0,0 +1,10 @@
var union = require('union');
var ecstatic = require('../');
union.createServer({
before: [
ecstatic(__dirname + '/public')
]
}).listen(8080);
console.log('Listening on :8080');