PHP Classes
elePHPant
Icontem

ExTemplate: Extensible template engine with callable functions

Recommend this page to a friend!
  Info   View files Example   View files View files (7)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2015-04-24 (2 years ago) RSS 2.0 feedNot enough user ratingsTotal: 227 All time: 7,814 This week: 546Up
Version License PHP version Categories
extemplate 1.0Public Domain5.4PHP 5, Templates
Description Author

This class implements an extensible template engine with callable functions.

It can register new template commands assigned by a name and a callable function that will define the meaning and result of the command when it is found on a template.

The template engine parses a template file to find marks enclosed in curly braces and replaces them with the result of the registered commands defined by the template marks.

Innovation Award
PHP Programming Innovation award nominee
April 2015
Number 3


Prize: One book of choice by Packt
Many template engines can be extended by the means of plugins that implement special commands for template tags.

This package implements a template engine that can be extended dynamically with new commands implemented with custom registered callable functions.

Manuel Lemos
  Performance   Level  
Name: Matthew Knowlton <contact>
Classes: 6 packages by
Country: United States United States
Innovation award
Innovation award
Nominee: 4x

Winner: 1x

  Files folder image Files  
File Role Description
Plain text file template.class.php Class Class Source
Accessible without login HTML file template.docs.html Doc. Documentation
Accessible without login Plain text file template.commands.php Aux. A few useful commands
Accessible without login Plain text file template.demo.php Example Example template file
Accessible without login Plain text file template.example.php Example Example PHP for proccessing a template
Accessible without login Plain text file demo.footer.php Aux. Footer file for the demo
Accessible without login Plain text file demo.header.php Aux. Template header file for the demo

 Version Control Unique User Downloads Download Rankings  
 0%
Total:227
This week:0
All time:7,814
This week:546Up