PHP Classes

AHM Template Engine: Template engine that uses regular expressions

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 1,004 All time: 3,636 This week: 68Up
Version License PHP version Categories
ahm-template-engine 1.0GNU General Publi...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: United States United States
Age: ???
All time rank: 1953274 in United States United States
Week rank: 191 Up27 in United States United States Up

  Files folder image Files (3)  
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

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:1,004
This week:0
All time:3,636
This week:68Up