This class implements a template engine that can perform variable substitution, supports blocks and can loop around blocks to iterate the processing of the same blocks using distinct variable substitution values.
Each template must start with a named block delimiter. A block ends when the delimter of a new block starts or when the template end is reached.
The output of a template is defined by telling the class to process a given block replacing the values of a given set of variables using PHP string replacing functions.
The class can render the template when the whole output definition is finished. |