我使用pug输出html,这是我以后用html-pdf生成的pdf。我的控制器: var source = fs.readFileSync(path.resolve(__dirname, 'templates/pdf.pug'), 'utfpug template and output html var html = template(data)
我的模板
room, function(err){ at Socket.join(/Users/Desktop/project/node_modules/socket.io/lib/socket.js:242:16)
at Socket.onconnect (/Users/Desktop/project/node_mo
在我的文件系统变得更加复杂之前,我曾经通过app.use(express.static())提供静态文件。styles.min.css <-- This is the static file I want to serve............index.js/routes....index.jsconst express = require('express')