In order to find a good template engine, I searched on the Internet and have compiled the following list:
Smarty Heyes Template Class FastTemplate ShellPage STP Simple Template Parser OO Template Class SimpleTemplate bTemplate Savant ETS - easy template system EasyTemplatePHP vlibTemplate AvanTemplate Grafx Software’s Fast Template TemplatePower TagTemplate htmltmpl: templating engine PHP Class for Parsing Dreamweaver templates MiniTemplator (Template Engine) Layout Solution Cached Fast Template TinyButStrong Brian Lozier’s php based template engine WACT PHPTAL
Smarty features compiling templates into PHP scripts and then executing these scripts. Very fast and very flexible.
A very easy-to-use, yet powerful and fast template engine that helps you separate page layout and design from code.
A simple variable interpolation template class that analyzes your template and separates the variable values from the HTML code.
A simple and easy-to-use class that allows your entire website layout to be based on a template file. Modifying the template can change the entire site.
A simple, lightweight and easy-to-use template analysis class. It can assemble a page from multiple templates and output the resulting page to the browser or file system.
A cash-oriented template class that you can use in your own programs.
A template engine that can create and structure websites. It can parse and compile templates.
Short but fast template classes that allow you to separate PHP logic code from HTML decoration code.
A powerful and lightweight PEAR compatible template system. It is non-compiled and uses the PHP language itself as its template language.
A template system that can restructure templates using exactly the same data.
A simple yet powerful template system for your site.
A fast, all-in-one template system that includes a caching and debugging class.
Multi-byte safe template engine that takes up very few system resources. It supports variable substitution, and content blocks can be set to show or hide.
A modified version of the Fast Template system that includes caching functionality, a debug console, and silence removal for assignment blocks.
A fast, simple and powerful template class. Key features are nested dynamic block support, block/file inclusion support and showing/hiding unassigned variables.
The functionality of this library is designed to work with template files while allowing you to retrieve information from HTML files.
A template engine for Python and PHP. It is aimed at web application developers who want to separate code and design in their projects.
A simple class that parses Dreamweaver templates, used in Gallery 2 and WordPress custom modules.
A compact template engine for HTML files. It has simple syntax for template variables and block definitions. Blocks can be nested.
Simplify website development and maintenance. It has commonly used variables and page elements so that you don't need to repeat page layout work.
It has been incorporated into FastTemplate, allowing you to cache template files and even cache different specifications on separate chunks of content.
A template engine supporting MySQL, Odbc, Sql-Server and ADODB. It contains 7 methods and two properties.
Only 2K in size, very fast and object-oriented.
A template engine that separates code from design.
An XML/XHTML template library under PHP.