diff --git a/src/template.mjs b/src/template.mjs index 10a8549..ee58f94 100644 --- a/src/template.mjs +++ b/src/template.mjs @@ -65,7 +65,7 @@ export default class { }; render(file, data = {}, locals) { - data = { ...data, ...this.#globals, ...locals }; + data = { ...data, ...locals, ...this.#globals }; try { const code = 'with(_data){const __html = [];' + '__html.push(\`' +