I think there are already hundreds of template libraries out there for PHP, of which only a couple have become quite famous: Smarty and (more recently) Mustache.
Personally I never quite liked these libraries. For simple templates I tend to use just inline PHP using PHP alternative syntax. Given the fact that PHP already is some kind of template language, I don't see the need for a new kind of syntax or a template system.
The problem comes when having to work with complex templates, for instance for isometric games, complex websites or applications. However most template systems do not really solve this problem because they still rely on inline coding technology. This is where Stamp is really different; Stamp does not require inline code; instead it manipulates templates from the outside. It uses HTML comments as markers to recognize portions of HTML and regions, while leaving the HTML clean.
copyright © 2011 Gabor de Mooij | Stamp PHP Template Library