PHP Classes

Extensible Template: Template engine extensible using sub-classes

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: 369 All time: 6,826 This week: 455Up
Version License PHP version Categories
extensibletemplate 1.0GNU General Publi...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
  Performance   Level  
Name: Daniel Andres Marjos is available for providing paid consulting. Contact Daniel Andres Marjos .
Classes: 13 packages by
Country: Argentina Argentina
Age: 54
All time rank: 261 in Argentina Argentina
Week rank: 215 Down4 in Argentina Argentina Down
Innovation award
Innovation award
Nominee: 2x

  Files folder image Files (8)  
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 (8)  /  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 (8)  /  plugins  
File Role Description
  Plain text file bltag_recordset.php Class a sample tag plugin

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:369
This week:0
All time:6,826
This week:455Up