Login   Register  
PHP Classes
elePHPant
Icontem

Extensible Template: Template engine extensible using sub-classes

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 (8)   DownloadInstall with Composer Download .zip   Reputation   Support forum (2)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2008-07-29 (6 years ago) RSS 2.0 feedNot yet rated by the usersTotal: 360 All time: 6,212 This week: 1,461Up
Version License PHP version Categories  
extensibletemplate 1.0GNU General Public Lice...5PHP 5, Templates
Description Author  

This class implements a template processing engine.

It find and process tags in a template in the form of <tpl:TAG param1="value1" param2="value2" ...> block </tpl:TAG> or as in the contracted form <tpl:TAG param1="value1" param2="value2" ... />.

Each tag found is processed by calling functions of the class. Therefore, the template engine can be extended by a sub-class that implements new types of tags.

Currently the base class implements tags for replacing variables, iterating over loop blocks, generating HTML select, radio and checkbox tags, and including external template blocks.

Picture of Daniel Andres Marjos
Name: Daniel Andres Marjos is available for providing paid consulting. Contact Daniel Andres Marjos .
Classes: 13 packages by
Country: Argentina Argentina
Age: 44
All time rank: 231 in Argentina Argentina
Week rank: 305 Down1 in Argentina Argentina Equal
Innovation award
Innovation award
Nominee: 2x

  Files folder image Files  
File Role Description
Files folder imagedoc (2 files)
Files folder imageplugins (1 file)
Plain text file extensibletemplate.php Class Main file
Accessible without login Plain text file extensibletemplate.txt Doc. Documentation
Plain text file exttpl_block.api.php Class Prototype for creating plugins
Plain text file exttpl_function.api.php Class Prototype for creating plugins
Plain text file exttpl_simple.api.php Class Prototype for creating plugins

  Files folder image Files  /  doc  
File Role Description
  Accessible without login Plain text file bltag_recordset.txt Doc. Sample plugin documentation
  Accessible without login Plain text file Plugins.txt Doc. Plugin system documentation

  Files folder image Files  /  plugins  
File Role Description
  Plain text file bltag_recordset.php Class a sample tag plugin

 Version Control Unique User Downloads Download Rankings  
 0%Total:360All time:6,212
 This week:0This week:1,461Up