summaryrefslogtreecommitdiffstats
path: root/lib/template/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/template/index.js')
-rw-r--r--lib/template/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/template/index.js b/lib/template/index.js
index 078dd6c..5af2089 100644
--- a/lib/template/index.js
+++ b/lib/template/index.js
@@ -80,7 +80,7 @@ TemplateEngine.prototype.bindContext = function(func) {
// Interpolate a string content to replace shortcuts according to the filetype
TemplateEngine.prototype.interpolate = function(filepath, source) {
- var parser = parsers.get(path.extname(filepath));
+ var parser = parsers.getByExt(path.extname(filepath));
var type = parser? parser.name : null;
return this.applyShortcuts(type, source);