You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 22, 2024. It is now read-only.
// Create a real JSON object from the model Map
function toJsonObject(model) {
var o = {};
for (var k in model) {
// Convert Iterable like List to real JSON array
if (model[k] instanceof Java.type("java.lang.Iterable")) {
o[k] = Java.from(model[k]);
}
else {
o[k] = model[k];
}
}
return o;
}
function render(template, model) {
return ejs.render(template, toJsonObject(model));
}
Have any of you done any tests with nashorn?
Could you point me in the right direction to get started?
damnhandy, nickwph, bfwg, pep1, anthony-o and 2 more