UNPKG

viewbridge

Version:

Shares views or templates between the server and client, making client side template pre-compilation and/or server side view pre-rendering easy.

15 lines (10 loc) 206 B
var express = require('express'); var http = require('http'); var app = express(); var n = 50; while (n--) { app.use(function(req, res, next){ next(); }); } http.createServer(app).listen(3000);