diff options
author | Samy Pessé <samypesse@gmail.com> | 2016-04-25 14:44:49 +0200 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2016-04-25 14:44:49 +0200 |
commit | 4552ccd7d76a1bf958481e24a695dd3b68e6c232 (patch) | |
tree | d96ca1329846062007700b6a28d696f0f10f9e18 /lib/models/book.js | |
parent | 525bcd8295f72ffa09d485f86c7adea2187cde55 (diff) | |
download | gitbook-4552ccd7d76a1bf958481e24a695dd3b68e6c232.zip gitbook-4552ccd7d76a1bf958481e24a695dd3b68e6c232.tar.gz gitbook-4552ccd7d76a1bf958481e24a695dd3b68e6c232.tar.bz2 |
Add loader for themes
Diffstat (limited to 'lib/models/book.js')
-rw-r--r-- | lib/models/book.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/models/book.js b/lib/models/book.js index 9b9f769..eb8011b 100644 --- a/lib/models/book.js +++ b/lib/models/book.js @@ -105,6 +105,16 @@ Book.prototype.getRoot = function() { }; /** + Return root for content of the book + + @return {String} +*/ +Book.prototype.getContentRoot = function() { + var fs = this.getContentFS(); + return fs.getRoot(); +}; + +/** Check if a file is ignore (should not being parsed, etc) @param {String} ref |