PHP Classes

Thorpe Systems template: Template engine with block loop processing support

Recommend this page to a friend!
  Info   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 835 All time: 4,132 This week: 794Up
Version License Categories
tsp_template 1.0BSD LicenseTemplates
Description Author

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.

Picture of thorpe hepburn
Name: thorpe hepburn <contact>
Classes: 1 package by
Country: Australia Australia
Age: 47
All time rank: 257134 in Australia Australia
Week rank: 441 Up4 in Australia Australia Up

  Files folder image Files  
File Role Description
Plain text file class.template.php Class the class itself
Accessible without login Plain text file example.html Data a template example
Accessible without login Plain text file example.php Example example script
Accessible without login Plain text file help.txt Doc. documentation

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:4,132
This week:794Up
User Comments (1)
12 years ago (kishore kumar)
For more information send a message to info at phpclasses dot org.