'Express-handlebars renders plain text instead of HTML

app.js

var hbs = exphbs.create()
app.engine('handlebars', hbs.engine)
app.set('view engine', 'handlebars')

defaultController.js

index: (req, res) => {
    res.render('default/index')
}

index.handlebars (under views/default)

<h1>Index</h1>


Solution 1:[1]

I missed a bracket. It must be

{{{body}}}

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Owais Ali