Introduction

Template Toolkit is the main template system for the cPanel and WHM interfaces. This system uses the Template Toolkit Perl library to create templates that can, for example, perform calls to the cPanel APIs and UAPI.

Note:

Whenever you customize existing template files, we strongly recommend that you back up all of the files before you edit them.

Access the Template Toolkit system

Use cptt tags to access the Template Toolkit system from HTML files. cptt tags reference a file that is relative to the /usr/local/cpanel/base/frontend/theme directory, where theme represents the cPanel theme (paper_lantern or another valid theme on the server).

For example, to call the /usr/local/cpanel/base/frontend/paper_lantern/templatefile.tmpl file from within an HTML file, use the following code in a Paper Lantern theme page:

<?cptt templatefile.tmpl ?>

Note:

HTML files and the .tmpl files that they call must exist in the same directory.

About Template Toolkit

Template Toolkit is a collection of Perl modules that create a template system for dynamic webpages.

cPanel, WebHost Manager, and WHM are registered trademarks of cPanel, Inc. for providing its computer software that facilitates the management and configuration of Internet web servers. ®2018 All rights reserved.

cPanel, WebHost Manager, and WHM are registered trademarks of cPanel, Inc. for providing its computer software that facilitates the management and configuration of Internet web servers. ®2018 All rights reserved.