mirror of
https://github.com/S2-/ejs-render-remote
synced 2025-08-02 12:40:04 +02:00
just throw when called sync
This commit is contained in:
@@ -25,11 +25,7 @@
|
|||||||
|
|
||||||
//if the template is already cached, return it and we are done
|
//if the template is already cached, return it and we are done
|
||||||
if (templateFn) {
|
if (templateFn) {
|
||||||
try {
|
|
||||||
return templateFn(data);
|
return templateFn(data);
|
||||||
} catch(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
|
} 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
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user