Commit 5ed14aa
committed
pass global.data.js output to template vars
Templates received only global.vars.js output in vars, while pages
received both global.vars.js and global.data.js output via PageData.vars.
This inconsistency forced every template that needed aggregated data to
re-derive it from the pages array, duplicating logic from global.data.js.
Merging globalDataVars into the globalVars object passed to templateBuilder
makes template vars consistent with how page vars already work.1 parent 5134ccc commit 5ed14aa
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
276 | 276 | | |
277 | 277 | | |
278 | 278 | | |
279 | | - | |
| 279 | + | |
280 | 280 | | |
281 | 281 | | |
282 | 282 | | |
| |||
0 commit comments