From 9c580e4989f104f095d9364b8c970e111c60fd1d Mon Sep 17 00:00:00 2001 From: Samy Pesse Date: Fri, 19 Jun 2015 16:28:46 +0200 Subject: [PATCH] Fix #802: make book.json accessible as "config." in templating --- lib/template.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/template.js b/lib/template.js index 3a4985c44..bc3e53e82 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,