Hi
We have been trying to manage the templates precompiled on the java side , by doing it at startup and cache this templates for future use.
So we maintained a HashMap<String, Template> , String being the name of the template.
So we add this data in context object and access it in a handlebar.js helper method like mapObject.get(template).apply(modContext)
It works , but we have this weird WARN
RHINO USAGE WARNING: Missed Context.javaToJS() conversion
But the page loads fine, I digged into the code and rhino seems to have this warning from ScriptRuntime.java class. So I am figuring out, since the Map is a default value resolver for the handlerbars.java, why this weird is throwing up?
Also the approach is the right one? Is there a better way to precompile the templates and use it .
Thanks.