Coming from Node.js and now working with Java I
Before I used EJS templates, then a JS file that works to call JS with parameters, these functions returned an HTML string, which I used to use I can do this to update the idea.
The great thing about this is that I have different templates in my templates (EJS) then Dynamic Grunt / EJS (I think, this is the internal argument of CSS.) Templates in a function I was just converting all of them, and finally to make one file usable in my app, just call me the function, give the argument and this is the one: Dynamically generated one view M The Creeper.
I want to get the same in a java environment, using ant, perhaps Maven, but I do not know where to look for me to not be a new Java novice.
Edit:
I'm talking about client-side templates, I just write HTML code inside the elite-JS stars and divide them into separate files. Conservative methods so that I can make them easier. I only need to use JS, not Java, but I need to "compile" Java environment, using ant.
This is somewhat similar, and, so you can see whether other useful answers.
There is an agreement that it seems, in which a Java-implementation compiler (among other flavors) can be executed as an ant target. This is a reasonless template, so you may want to find another solution.
Since the node from the ant. It is possible to call JS script, it seems that the node. There is an artificial ban for not being JS. If you can persuade your team to allow Node.js, then you have a lot of options and flexibility in the template options.
Node. Js is not related to any-or java tool. There are lots of rooms for both in project, and I have worked on C # projects that node Using JS, like I have worked on projects using JRB, Java and Rail. None of those technologies covers others.
Note that I am not recommending that you nod people as an environment Switch to JS, move existing code, or use grunt, but if this is a useful tool that you are familiar with, then I can not think of any good reason why you should not use it .
No comments:
Post a Comment