mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-23 19:06:31 +00:00
Fix add global env to templateEngine
This commit is contained in:
@@ -107,7 +107,7 @@ TemplateEngine.prototype.toNunjucks = function() {
|
||||
});
|
||||
|
||||
// Add globals
|
||||
globals.forEach(function(globalName, globalValue) {
|
||||
globals.forEach(function(globalValue, globalName) {
|
||||
env.addGlobal(globalName, globalValue);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user