diff --git a/lib/consolidate.js b/lib/consolidate.js index c04ab7f..0c9fb0b 100644 --- a/lib/consolidate.js +++ b/lib/consolidate.js @@ -116,7 +116,7 @@ function readPartials(path, options, fn) { function next(index) { if (index == keys.length) return fn(null); var key = keys[index]; - var file = join(dirname(path), partials[key] + extname(path)); + var file = join(options.settings.views, partials[key] + extname(path)); read(file, options, function(err, str){ if (err) return fn(err); options.partials[key] = str;