I need to visualize some data and I want to create an javascript array based on this data.
I want to inject my own name and data to a variable from java code
/*[+
var [+ [[${data.getDataName}]] = [[${data.getData()}]];
+]*/
However name and data appears in brackets. Is there any walk around? Maybe you can recommend better html template engine, which works better with javascript?
Right now I have hard-coded html and javascript in my code and I want to get rid of it.