O'Reilly logo

Alfresco 3 Cookbook by Snig Bhaumik

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

Chapter 9. FreeMarker Templates

In this chapter, we will cover:

  • Creating and using a template
  • Creating a template to display all documents in current space
  • Displaying all versions of a particular document
  • Displaying all assigned tasks of the current user
  • Displaying all spaces and sub-spaces recursively

Introduction

A template is a document that can be applied on a data object to produce another document. Thus templates are used to present data or content in different styles and formats.

A typical template engine works in the following way:

The template engine accepts both data and the template, and a new document is generated and returned as per the template provided.

For example, an XML document can be used as data, and an XSLT document works as the template—this ...

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