中间件将一组Web组件连接到一个文件中以进行express。安装npm install --save vulcanize-middleware。使用方法:


var express = require('express');

var app = express();

// view engine setup

app.set('views', path.join(__dirname, 'views'));

app.set('view engine', 'jade');

var public_dir = path.join(__dirname, 'public');

app.use(express.static(public_dir));

app.use(require('vulca'));