我希望能够在下面使用 Handlebars.js,但它不起作用?
{{#each questions}}
<p>{{content}}</p>
{{#if user}} display reply button {/if}
{{/each}}
我想显示所有问题,如果用户登录,他可以回复。
这是我的nodejs代码
router.get('/question', function(req, res){
Question.find({}).then (questions =>{
res.render('question',{questions});
});
});