Including Other Templates

It is good practice to re-use a single template as much as possible, since this means you have less templates to manage. If you have created a re-usable template, you can include it from another template using the {include} function. This function takes a single argument called file which is the name of the template to include.

This is often useful in Recite CMS if you have a number of different page templates, but all use the same HTML header (that is, they load the same CSS and JavaScript files and have the same list of meta tags).

For example, you might create the page header in a file called header.tpl in a directory called misc. The path of this file in Recite CMS would be misc/header.tpl. If you want to use this template from another template you would use {include file='misc/header.tpl'} in your template.