Freemarker
FreeMarker is a Java based template engine, a generic tool to generate text output (anything from HTML to autogenerated source code) based on templates
Velocity
Apache Velocity is a Java-based template engine
Apache complex richer
Example |
---|
"You can use template engines for these kind of requirements there are multiple template engines are available like apache velocity apache freemarker thymeleaf pebble but i feel apache freemarker is better" from question Replace symbols in HTML mail |
"Freemarker has a more complex but correspondingly richer markup language than apache velocity" from question Is there a HTML templating engine for Google App Engine (in Java)? |
Simpler powerful velocity
Example |
---|
"Freemarker works well and is very powerful;velocity has a simpler syntax is somewhat less powerful and is a lot more forgiving wrt" from question Email Template Library in Java |
"Velocity is simpler than freemarker" from question How do I separate markup from application code when building a Java website? |
Flexible experience velocity
Example |
---|
"Freemarker is more powerful than velocity" from question How do I separate markup from application code when building a Java website? |
"Freemarker is also a lot more flexible in my experience;velocity isn t really under active development any more" from question Velocity vs. FreeMarker |
Others
Example |
---|
Freemarker provides much better native whitespace handling recent velocity releases provide more interesting content controls #define #evaluate # literal block # from question Freemarker vs. Velocity |
Freemarker is more advanced but a little complex as compared to apache velocity from question An HTML template engine for Java like Genshi or Zope's TAL |
Freemarker has more i18n support built into the core engine;however velocity with the addition of the velocitytools project offers more i18n functionality i believe from question Internationalization support better in Velocity or FreeMarker? |
I m trying to create a template in velocity since i have more knoledge than freemarker from question Creating a Velocity template for Dynamic Data List (Liferay 6.2) |
Velocity is worse than freemarker and stringtemplate has got its own issues from question Better template language needed |