Velocity is the default engine for templates in Liferay. Why is this so?
Hot-deployable themes are themes that you deploy at runtime. The themes that you deploy from Eclipse in Plugins SDK are hot-deployable themes. These themes are deployed as a Web Application Archive (WAR) file, such as store-theme-${VERSION}.war
, which has a .war
extension. Such themes must use Velocity templates because they cannot access Liferay's classes.
Liferay placed its Java Archive (JAR) files in the shared class loader until Version 4.0.0. The intention was to allow all the applications in Liferay to use Liferay's classes because they were in the shared class directory. At that time, both JSP and Velocity templates were supported for themes ...
No credit card required