Building Reusable Template Components

Templating System : Developer Guide : User Guide

Most page layouts can be separated into smaller components, many of which may appear in different contexts throughout a site. Examples include:

The templating system makes it easy to build reusable components for any of the above scenarios. The basic process is to build a container template, which delineates the skeletal layout of the page. Component templates may then be placed in the container template with the include tag. The container may pass arguments to the components as needed for personalization or any other purpose.


templating@arsdigita.com