summaryrefslogtreecommitdiffstats
path: root/lib/models/book.js
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2016-04-25 14:44:49 +0200
committerSamy Pessé <samypesse@gmail.com>2016-04-25 14:44:49 +0200
commit4552ccd7d76a1bf958481e24a695dd3b68e6c232 (patch)
treed96ca1329846062007700b6a28d696f0f10f9e18 /lib/models/book.js
parent525bcd8295f72ffa09d485f86c7adea2187cde55 (diff)
downloadgitbook-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.js10
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