Express+jade: local variable not available in view

前端 未结 3 2296
迷失自我
迷失自我 2021-02-19 03:41

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 var

3条回答
  •  抹茶落季
    2021-02-19 04:20

    You should pass the variable without the locals. This is probably new in express 3.0.0

    res.render("index", {title: "Blog"});
    

提交回复
热议问题