diff options
Diffstat (limited to 'lib/configuration.js')
-rw-r--r-- | lib/configuration.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/configuration.js b/lib/configuration.js index fee40fc..70b2eb5 100644 --- a/lib/configuration.js +++ b/lib/configuration.js @@ -75,6 +75,20 @@ var Configuration = function(book, options) { return that.book.root; } }); + + // options.originalInput == book.parent.root + Object.defineProperty(this.options, "originalInput", { + get: function () { + return that.book.parent? that.book.parent.root : undefined; + } + }); + + // options.originalOutput == book.parent.options.output + Object.defineProperty(this.options, "originalOutput", { + get: function () { + return that.book.parent? that.book.parent.options.output : undefined; + } + }); }; // Read and parse the configuration |