summaryrefslogtreecommitdiffstats
path: root/lib/template/loader.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/template/loader.js')
-rw-r--r--lib/template/loader.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/template/loader.js b/lib/template/loader.js
index 23ffb77..5d30fb2 100644
--- a/lib/template/loader.js
+++ b/lib/template/loader.js
@@ -16,16 +16,16 @@ var Loader = nunjucks.Loader.extend({
this.git = new Git(this.fs.tmpdir());
},
- getSource: function(soureURL, callback) {
+ getSource: function(sourceURL, callback) {
var that = this;
- this.git.resolveFile(soureURL)
+ this.git.resolve(sourceURL)
.then(function(filepath) {
// Is local file
if (!filepath) {
- filepath = that.book.resolve(soureURL);
+ filepath = that.book.resolve(sourceURL);
} else {
- that.book.log.debug.ln('resolve from git', soureURL, 'to', filepath);
+ that.book.log.debug.ln('resolve from git', sourceURL, 'to', filepath);
}
// Read file from absolute path