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 has been 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?
The text was updated successfully, but these errors were encountered:
Hi!
I'm submitting a feature request to get angular universal working with spring boot
I've been playing with Spring Boot and Nashorn to render javascript views which works great.
Now I would like to get NG2 working with Nashorn.
I've could help out with implementing it but I need some guidance.
To render .ejs files with nashorn you create a spring bean as follows
// polyfill.js
// render.js
Have any of you done any tests with nashorn?
Could you point me in the right direction to get started?
The text was updated successfully, but these errors were encountered: