diff options
Diffstat (limited to 'lib/template.js')
-rw-r--r-- | lib/template.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/template.js b/lib/template.js index cc247c0..4b2035f 100644 --- a/lib/template.js +++ b/lib/template.js @@ -30,7 +30,7 @@ var BookLoader = nunjucks.Loader.extend({ git.resolveFile(fileurl) .then(function(filepath) { // Is local file - if (!filepath) filepath = path.resolve(that.book.root, fileurl); + if (!filepath) filepath = that.book.resolve(fileurl); else that.book.log.debug.ln("resolve from git", fileurl, "to", filepath) // Read file from absolute path |