Templating

Content Control template engine is based on Apache Velocity. In order to render a page a template is required. Each template consists of two parts - definition and body.

The data structure of the page is described in the simple XML definition. It describes the fields of a page and their type. It is possible to have page without any fields if necessary.

The visual layout and data manipulation is done in the body part. The body is a Velocity template for the page, in practice this is just normal HTML with some Velocity markup. Content Control provides additional objects to Velocity context to extend its basic set of commands.