Express Combo
Express 应用的 Combo 处理器。
示例代码:
var express = require('express'), app = express(), statichandler = require('express-combo'); app.get('/static', statichandler.folder('public', 'full/path/to/folder/')); app.get('/static', statichandler.map('protected', { 'something/foo.js": "full/path/to/something/foo.js', 'bar.js": "full/path/to/something/bar.js' })); app.get('/static', statichandler.combine({ comboBase: '/combo~', comboSep: '~' }));
评论