Upgrading Frameworks and Features
Step 4 of 4
Velocity templates were deprecated in Liferay Portal 7.0 and are now removed in favor of FreeMarker templates in Liferay DXP 7.2. Below are the key reasons for this move:
FreeMarker is developed and maintained regularly, while Velocity is no longer actively being developed.
FreeMarker is faster and supports more sophisticated macros.
FreeMarker supports using taglibs directly rather than requiring a method to represent them. You can pass body content to them, parameters, etc.
Although Velocity templates still work in Liferay DXP 7.2, we highly recommend migrating to FreeMarker templates. For more information on this topic, see the Upgrading Layout Templates section.