1
不知道我在做什么错在这里..从node.js的传球达阵/快递到玉模板
questions.js
questions = [];
questions.AA = 'First'
questions.BB = 'Second'
questions.CC = 'Third'
res.render('questions', { title: questions[CC], questions: questions });
questions.jade
extends layout
block content
h1= title
p #{questions.CC}
each question in questions
p= question
渲染
<body>
<h1>Third</h1>
<p>Third</p>
</body>
所以
each question in questions
p= question
似乎没有像我期望的那样工作。我错过了什么?