diff options
author | Samy Pesse <samypesse@gmail.com> | 2016-04-30 20:08:04 +0200 |
---|---|---|
committer | Samy Pesse <samypesse@gmail.com> | 2016-04-30 20:08:04 +0200 |
commit | 80b8e340dadc54377ff40500f86b1de631395806 (patch) | |
tree | bc7e0f703d4557869943ec7f9495cac7a5027d4f /lib/models | |
parent | b51470db398e7da090805da666d2a6cc9c0b3deb (diff) | |
download | gitbook-80b8e340dadc54377ff40500f86b1de631395806.zip gitbook-80b8e340dadc54377ff40500f86b1de631395806.tar.gz gitbook-80b8e340dadc54377ff40500f86b1de631395806.tar.bz2 |
Fix add global env to templateEngine
Diffstat (limited to 'lib/models')
-rw-r--r-- | lib/models/templateEngine.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/models/templateEngine.js b/lib/models/templateEngine.js index 0d0a015..243bfc6 100644 --- a/lib/models/templateEngine.js +++ b/lib/models/templateEngine.js @@ -107,7 +107,7 @@ TemplateEngine.prototype.toNunjucks = function() { }); // Add globals - globals.forEach(function(globalName, globalValue) { + globals.forEach(function(globalValue, globalName) { env.addGlobal(globalName, globalValue); }); |