I think you are using JADE coding (#{hello}) with "pug"(updated jade) plugin with static .html -- completely wrong.
Follow the lines below:
- Use this first
app.set('views', __dirname + '/public/views');
app.set('view engine', 'pug');
- Then pass this to first visit
app.get('/', function (req, res) {
res.render('index', { title: 'Hey', message: 'Hello there!'});
});
- Then echo in template file "index.pug" in "/public/views"
html
head
title= title
body
h1= message
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…