mirror of
https://github.com/matt-fidd/stratos.git
synced 2026-01-02 05:59:30 +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',
|
'hbs',
|
||||||
engine({
|
engine({
|
||||||
extname: '.hbs',
|
extname: '.hbs',
|
||||||
helpers: hbsHelpers
|
helpers: hbsHelpers,
|
||||||
})
|
runtimeOptions: {
|
||||||
|
allowProtoPropertiesByDefault: true,
|
||||||
|
allowProtoMethodsByDefault: true
|
||||||
|
}
|
||||||
|
}),
|
||||||
);
|
);
|
||||||
app.set('view engine', 'hbs');
|
app.set('view engine', 'hbs');
|
||||||
app.set('views', path.join(__dirname, 'views'));
|
app.set('views', path.join(__dirname, 'views'));
|
||||||
|
|||||||
Reference in New Issue
Block a user