What HTML template is better to use in project that is not a web related, in we particular need to generate html from xml and java objects?
Is Freemarker a good template engine? Or maybe is better just to use xslt transformation?
What HTML template is better to use in project that is not a web
Share
I’d use a host of technologies before XSLT, including things like FreeMarker, Velocity, Mustache, MVEL, Groovy, etc. I prefer FreeMarker over Velocity due to FM’s better error handling.
A lot of it depends on how smart you want your templates to be: Mustache forces very dumb templates, Groovy builders allow insanely smart ones.
If you have a lot of XSLT expertise, or have everything exposed as XML, then XSL would be fine–it’s misunderstood and isn’t as bad as people say it is, but it’s verbose, and for generating HTML it sure seems like other options are more appropriate.