Login   Register  
PHP Classes
elePHPant
Icontem

AHM Template Engine: Template engine that uses regular expressions

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 (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2008-04-15 (6 years ago) RSS 2.0 feedNot yet rated by the usersTotal: 923 All time: 3,560 This week: 1,469Up
Version License PHP version Categories  
ahm-template-engine 1.0GNU General Public Lice...4.1Templates
Description Author  

This class implements template engine that uses regular expressions to search and replace template placeholder.

It searches for placeholder tags that start and end with # character and have the placeholder name prefixed with $.

The class replaces placeholders by values previously assigned before processing the template.

It also supports iterating over sections when the template variable values are arrays with the different values that should be used to process repeatedly the same section.

Picture of shahnur
Name: shahnur <contact>
Classes: 2 packages by
Country: Bangladesh Bangladesh
Age: ???
All time rank: 183427 in Bangladesh Bangladesh
Week rank: 1846 Down33 in Bangladesh Bangladesh Down

  Files folder image Files  
File Role Description
Accessible without login Plain text file test.tpl Example Test Template File
Accessible without login Plain text file test.php Example Test PHP File
Plain text file ahm.template.engine.php Class The Engine File

 Version Control Unique User Downloads Download Rankings  
 0%Total:923All time:3,560
 This week:0This week:1,469Up