ranking Sort Sort   |   date Sort Sort   |   member Sort Sort

Date Submitted Thu. Aug. 28th, 2008 9:33 AM
Revision 1
Scripter Fordiman
Tags buffering | errors | Output | PHP | template
Comments 0 comments
Best use of ob_, custom error handling, and variable variales evar: simple templating.

includes $filename and renders its output to the return value. $locals, if used, will add a set of variables to the included context.

Same as above, but allows you to define a base template folder and omit the .php - just for cleaner code.

Same as Parse, but any output between the opening call and the closing call (no arguments) will be buffered intot he $content variable of the template.

Play around with t(..) to find out more; I don't feel like documenting it.
Date Submitted Sun. May. 20th, 2007 4:45 AM
Revision 1
Scripter SecondV
Tags engine | parser | template
Comments 1 comments
This class implements a simple template engine that works by replacing text.

It can read a template file into a string. Then it searches and replaces all occurrences of the template place holder marks with the values of one or more template arguments.