Login   Register  
PHP Classes
elePHPant
Icontem

Template Generation: Template engine that replaces regular expression

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 (5)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2006-02-07 (8 years ago) RSS 2.0 feedStarStarStar 45%Total: 761 All time: 4,053 This week: 1,553Up
Version License Categories  
templategeneration 1.0GNU General Public Lice...Templates
Description Author  

This class is a simple template engine based on replacing regular expressions.

It reads template files using the PHP include function to make any PHP in the template file be executed. Then it searches the resulting included file for template placeholders.

It uses regular expressions to match each of the input parameters. The placeholders that are found are replaced by the respective parameter values.

Picture of larry bird
Name: larry bird <contact>
Classes: 2 packages by
Country: Bulgaria Bulgaria
Age: ???
All time rank: 10146 in Bulgaria Bulgaria
Week rank: 1863 Down11 in Bulgaria Bulgaria Down

  Files folder image Files  
File Role Description
Accessible without login Plain text file readme Data redme file
Accessible without login Plain text file test.php Example test file of working template
Accessible without login Plain text file langPatch.php Conf. simple language pack file
Accessible without login Plain text file default.tpl Data HTML file to parse
Plain text file classTPL.php Class base template generation file

 Version Control Unique User Downloads Download Rankings  
 0%Total:761All time:4,053
 This week:0This week:1,553Up
 User Ratings  
 
 All time
Utility:58%StarStarStar
Consistency:75%StarStarStarStar
Documentation:-
Examples:87%StarStarStarStarStar
Tests:-
Videos:-
Overall:45%StarStarStar
Rank:1896