WHMCS uses the Smarty templating engine.
Smarty is a fast and powerful templating system with a vast array of functionality that makes working with WHMCS templates easy and flexible.
Visit the Smarty 3 manual below:
<i class="fa fa-file-text-o"></i> Launch Smarty Documentation