Simplate - PHP Template Engine
This class implements a template engine that replaces arrays of variables. It can load and parse a template file from a given directory and traverses an associative array of variables to process the template file replacing the template marks by array values. Template variables that are arrays are traversed and the template is processed as many times as there are entries in the template variables array.