Login   Register  
PHP Classes
elePHPant
Icontem

Thorpe Systems template: Template engine with block loop processing support

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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 (9 years ago) RSS 2.0 feedNot enough user ratingsTotal: 827 All time: 3,863 This week: 1,459Up
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: 39
All time rank: 236130 in Australia Australia
Week rank: 1882 Up25 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:827All time:3,863
 This week:0This week:1,459Up
 User Comments (1)  
 
Excellent
5 years ago (kishore kumar)
80%StarStarStarStarStar