PHP Classes

Template Generation: Template engine that replaces regular expression

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
StarStarStar 43%Total: 777 All time: 4,372 This week: 560Up
Version License Categories
templategeneration 1.0GNU General Publi...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: 11116 in Bulgaria Bulgaria
Week rank: 206 Up2 in Bulgaria Bulgaria Up

Details

+-------------------------------------------------------------------------------+ | name Template Gereation | | files: classTPL.php - base template generation file | | langPatch.php - simple language pack file | | test.php - test file of working template | | default.tpl - HTML file to parse | | | | vaersion 2006/feb/07 | | Released under the terms and conditions of the GNU General Public License | | For more details: http://gnu.org | | | | Test on these System Configuration: | | Apache/2.0.55 (Win32) PHP/5.1.2 + MySQL/5.0.15 | | Apache/2.0.52 (Unix) PHP/4.3.9 + MySQL/4.0.21 | | Apache/2.0.52 (Unix) PHP/5.0.2 + MySQL/4.0.21 | | | | Author: Georgi Lambov | | Get Freak! | +-------------------------------------------------------------------------------+

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

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:777
This week:0
All time:4,372
This week:560Up
 User Ratings  
 
 All time
Utility:57%StarStarStar
Consistency:71%StarStarStarStar
Documentation:-
Examples:82%StarStarStarStarStar
Tests:-
Videos:-
Overall:43%StarStarStar
Rank:3526