Express+jade: local variable not available in view
问题 I ran into a very basic problem but I can't seem to find the answer to it. I am working with node.js , express and I am just trying to pass a local variable into the view like this: app.get('/', function(req, res){ res.render("index", {locals: { title: "Blog", } }); }); My index view is equally simple: h1= title But for some reason, I keep getting this error as if the local variable is never passed: 500 ReferenceError: /home/spartan/Node_Projects/test/views/index.jade:1 > 1| h1= title 2|