mirror of
https://github.com/S2-/ejs-render-remote
synced 2025-08-02 20:50:04 +02:00
Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
23d46035e8 | |||
1c720ce9f3 |
@@ -66,7 +66,13 @@
|
||||
$.get(templateUrl)
|
||||
.then(function(template) {
|
||||
var templateOptions = overwriteWithCacheOptions(options, templateUrl);
|
||||
var templateFn = ejs.compile(template, templateOptions);
|
||||
try {
|
||||
var templateFn = ejs.compile(template, templateOptions);
|
||||
} catch(ex) {
|
||||
console.error(templateUrl, ex);
|
||||
d.reject(ex);
|
||||
throw ex;
|
||||
}
|
||||
ejs.cache.set(templateUrl, templateFn);
|
||||
|
||||
d.resolve(templateUrl);
|
||||
|
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "ejs-render-remote",
|
||||
"version": "1.0.7",
|
||||
"version": "1.0.8",
|
||||
"description": "",
|
||||
"main": "index.js",
|
||||
"homepage": "https://github.com/S2-/ejs-render-remote",
|
||||
@@ -9,5 +9,9 @@
|
||||
},
|
||||
"author": "s2 <s2@31337.it>",
|
||||
"license": "ISC",
|
||||
"keywords": ["ejs", "templating", "client-side"]
|
||||
"keywords": [
|
||||
"ejs",
|
||||
"templating",
|
||||
"client-side"
|
||||
]
|
||||
}
|
||||
|
Reference in New Issue
Block a user