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 = {
 {name: "foo"},
 {pass: "bar"}
 return data;

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

The template is as follows

{{#if showTitle}}

The page output results are shown in the figure below.

How do you write this template to correctly display the 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.