ExTemplate: Extensible template engine with callable functions

Recommend this page to a friend!
  Info   Example   View files (7)   Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 235 This week: 1All time: 7,935 This week: 255
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
Picture of Matthew Knowlton
  Performance   Level  
Name: Matthew Knowlton is available for providing paid consulting. Contact Matthew Knowlton .
Classes: 6 packages by
Country: United States United States
Age: 25
All time rank: 2052269 in United States United States
Week rank: 259 23 in United States United States
Innovation award
Innovation award
Nominee: 4x

Winner: 1x

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

 Version Control Unique User Downloads Download Rankings  
 0%
Total:235
This week:1
All time:7,935
This week:255

For more information send a message to info at phpclasses dot org.