mirror of
https://github.com/matt-fidd/stratos.git
synced 2026-01-01 22:39:26 +00:00
Allow handlebars to use prototype properties and methods
This commit is contained in:
8
app.js
8
app.js
@@ -61,8 +61,12 @@ async function main() {
|
||||
'hbs',
|
||||
engine({
|
||||
extname: '.hbs',
|
||||
helpers: hbsHelpers
|
||||
})
|
||||
helpers: hbsHelpers,
|
||||
runtimeOptions: {
|
||||
allowProtoPropertiesByDefault: true,
|
||||
allowProtoMethodsByDefault: true
|
||||
}
|
||||
}),
|
||||
);
|
||||
app.set('view engine', 'hbs');
|
||||
app.set('views', path.join(__dirname, 'views'));
|
||||
|
||||
Reference in New Issue
Block a user