O'Reilly logo

Liferay User Interface Development by Frank Yu, Xinsheng Chen, Jonas X. Yuan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

What is a Velocity template?

Let us first see an example of a Velocity template:

<html>
<head>
<title>A Template Based Page</title>
</head>
<body>
<p>I am $me.</p>
<p>I am $merit.</p>
</body>
</html>

This Velocity template is in HTML. It is markup for a complete web page.

So, a Velocity template is a text file that consists of:

  • Static text
  • Velocity references as placeholders
  • Velocity directives and instructions

A Velocity template can be used in HTML, XML, SQL and other formats.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required