diff --git a/src/frontend/ViewEngine.ts b/src/frontend/ViewEngine.ts index 2df27e5..b8992f3 100644 --- a/src/frontend/ViewEngine.ts +++ b/src/frontend/ViewEngine.ts @@ -21,7 +21,7 @@ export default abstract class ViewEngine extends AssetPreCompiler { public setup(app: Express, main: boolean): void { app.engine(this.extension, (path, options, callback) => { // Props (locals) - const locals = Object.assign(options, this.getGlobals().get()); + const locals = Object.assign(this.getGlobals().get(), options); this.render(path, locals) .then(value => callback(null, value))