mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-28 22:55:14 -07:00
err.file for #renderFile()
This commit is contained in:
@@ -42,8 +42,14 @@ var _engine = {
|
||||
return this.render(tpl, ctx);
|
||||
},
|
||||
renderFile: function(filepath, ctx) {
|
||||
var tpl = this.handleCache(filepath);
|
||||
return this.render(tpl, ctx);
|
||||
try{
|
||||
var tpl = this.handleCache(filepath);
|
||||
return this.render(tpl, ctx);
|
||||
}
|
||||
catch(e){
|
||||
e.file = filepath;
|
||||
throw e;
|
||||
}
|
||||
},
|
||||
evalOutput: function(str, scope) {
|
||||
var tpl = this.parser.parseOutput(str.trim());
|
||||
|
||||
Reference in New Issue
Block a user