PHP Classes

Thorpe Systems template: Template engine with block loop processing support

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in
  Info   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2005-02-12 (10 years ago) RSS 2.0 feedNot enough user ratingsTotal: 829 This week: 1All time: 3,940 This week: 1,127Up
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: 40
All time rank: 241930 in Australia Australia
Week rank: 910 Up14 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  
 0%Total:829All time:3,940
 This week:1This week:1,127Up
 User Comments (1)  
6 years ago (kishore kumar)