Helper of express-handlebars returns json object, how to write template rendering?

  node.js, question

When using the helper function of express-handlerbars, I return a json object, but in the template I didn’t know how to write to express the values of this json object.
Helper is as follows

var hbs = exphbs.create({
 helpers: {
 foo: function () { return 'FOO!'  ;  },
 bar: function () {
 var data = {
 user:[
 {name: "foo"},
 {pass: "bar"}
 bracket
 
 };
 return data;
 bracket
 bracket
 });

The router rewrites foo, but bar did not

app.get('/', function (req, res, next) {
 res.render('home', {
 showTitle: true,
 
 // Override `foo` helper only for this rendering.
 helpers: {
 foo: function () { return 'foo.';  bracket
 bracket
 });
 });

The template is as follows

{{#if showTitle}}
 <h1>Home</h1>
 {{/if}}
 
 <p>{{foo}}</p>
 
 {{#bar}}
 <p>user.name</p>
 <p>user.pass</p>
 {{/bar}}

The page output results are shown in the figure below.
图片描述

How do you write this template to correctly display the user.name and user.pass of json object inside?

I haven’t used express-handlebars and haven’t tried them, but you should give them anyway.user.nameAnduser.passAdd double curly brackets.