diff options
author | Samy Pesse <samypesse@gmail.com> | 2015-06-19 16:28:46 +0200 |
---|---|---|
committer | Samy Pesse <samypesse@gmail.com> | 2015-06-19 16:28:46 +0200 |
commit | 9c580e4989f104f095d9364b8c970e111c60fd1d (patch) | |
tree | 30dd0dc6ff4884fcd2abef89513ffa4227d1a6e5 /lib/template.js | |
parent | 50c902c4e481e8d1321e734d8912d1b285fc4f3c (diff) | |
download | gitbook-9c580e4989f104f095d9364b8c970e111c60fd1d.zip gitbook-9c580e4989f104f095d9364b8c970e111c60fd1d.tar.gz gitbook-9c580e4989f104f095d9364b8c970e111c60fd1d.tar.bz2 |
Fix #802: make book.json accessible as "config." in templating
Diffstat (limited to 'lib/template.js')
-rw-r--r-- | lib/template.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/template.js b/lib/template.js index 3a4985c..bc3e53e 100644 --- a/lib/template.js +++ b/lib/template.js @@ -316,6 +316,9 @@ TemplateEngine.prototype.renderString = function(content, context, options) { // Variables from book.json book: this.book.options.variables, + // Complete book.json + config: this.book.options, + // infos about gitbook gitbook: { version: pkg.version, |