XTemplate is a template engine for PHP which allows you to store your HTML code apart from your PHP code. It has many useful features such as nested blocks and various kinds of variable interpolation, and yet the code is very short and very optimized. It includes several examples and was written with an attempt at being easy to understand. The basic syntax is from FastTemplate and QuickTemplate but the entire class was written from scratch without code from other template engines.