PHP Classes

REG_template: 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: 246 All time: 7,976 This week: 560Up
Version License PHP version Categories
reg-template 1.4GNU General Publi...4.0Templates
Description 

Author

This class implements a template engine that uses regular expressions to locate and replace the template marks.

It takes a template file from a given directory and can search and replace marks with assigned variable values.

The class also supports literal sections with content that will not be processed as template marks, including external template files, conditional sections, iterate over sections multiple times, sections with explicit PHP code, and caching the processed template output for a given period of time.

Picture of Eper Kalman
Name: Eper Kalman <contact>
Classes: 10 packages by
Country: Serbia Serbia
Age: 49
All time rank: 7525 in Serbia Serbia
Week rank: 215 Up1 in Serbia Serbia Up
Innovation award
Innovation award
Nominee: 3x

  Files folder image Files (5)  
File Role Description
Files folder imageincludes (1 file)
Files folder imagetemplates (2 files)
Plain text file example.php Example example script
Accessible without login HTML file REG_template.html Doc. short documentation

  Files folder image Files (5)  /  includes  
File Role Description
  Plain text file REG_template.class.php Class the main class

  Files folder image Files (5)  /  templates  
File Role Description
  HTML file example.html Example template file
  Plain text file title.html Data template 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:246
This week:0
All time:7,976
This week:560Up