diff options
Diffstat (limited to 'lib/config/index.js')
-rw-r--r-- | lib/config/index.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/config/index.js b/lib/config/index.js index ede45ba..a5a0d67 100644 --- a/lib/config/index.js +++ b/lib/config/index.js @@ -131,4 +131,11 @@ Config.prototype.dump = function() { return _.cloneDeep(this.options); }; +// Return templating context +Config.prototype.getContext = function() { + return { + config: this.book.config.dump() + }; +}; + module.exports = Config; |