Fix #802: make book.json accessible as "config." in templating

This commit is contained in:
Samy Pesse
2015-06-19 16:28:46 +02:00
parent 50c902c4e4
commit 9c580e4989
+3
View File
@@ -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,