1
0
mirror of https://github.com/S2-/ejs-render-remote synced 2025-08-02 20:50:04 +02:00

2 Commits

Author SHA1 Message Date
s2
6635965706 1.0.11 2020-02-08 18:22:48 +01:00
s2
dfcf1a4b6f use $.readyException 2020-02-08 18:22:16 +01:00
2 changed files with 4 additions and 6 deletions

View File

@@ -28,8 +28,7 @@
try {
return templateFn(data);
} catch(ex) {
console.error(ex);
throw ex;
$.readyException(ex);
}
} else { //if the template is not cached, we need to get it and render it later once we have it. remember: this happens only if the template is not already cached
@@ -52,7 +51,7 @@
templateOptions
));
} catch(ex) {
console.error(templateUrl, ex);
$.readyException(ex);
}
//clean up the getFnFor
@@ -80,9 +79,8 @@
ejs.cache.set(templateUrl, templateFn);
d.resolve(templateUrl);
} catch(ex) {
console.error(templateUrl, ex);
$.readyException(ex);
d.reject(ex);
throw ex;
}
});
}

View File

@@ -1,6 +1,6 @@
{
"name": "ejs-render-remote",
"version": "1.0.10",
"version": "1.0.11",
"description": "",
"main": "index.js",
"homepage": "https://github.com/S2-/ejs-render-remote",