PHP Classes
elePHPant
Icontem

Simplate: Template engine that replaces arrays of variables

Recommend this page to a friend!
  Info   View files Example   Screenshots Screenshots   View files View files (11)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2014-11-04 (1 year ago) RSS 2.0 feedNot yet rated by the usersTotal: 177 All time: 7,991 This week: 1,109Up
Version License PHP version Categories
simplate 1.0BSD License5.0PHP 5, Templates
Description Author

This class implements a template engine that replaces arrays of variables.

It can load and parse a template file from a given directory and traverses an associative array of variables to process the template file replacing the template marks by array values.

Template variables that are arrays are traversed and the template is processed as many times as there are entries in the template variables array.

Picture of Michael Orji
  Performance   Level  
Name: Michael Orji <contact>
Classes: 2 packages by
Country: Nigeria Nigeria

Screenshots  
  • examples/images/koala.jpg
  Files folder image Files  
File Role Description
Files folder imageexamples (4 files, 2 directories)
Plain text file simplate.class.php Class Main Class Source

  Files folder image Files  /  examples  
File Role Description
Files folder imageimages (1 file)
Files folder imagetemplates (5 files)
  Accessible without login Plain text file list_users.php Example example usage
  Accessible without login Plain text file styles.css Data styling for example
  Accessible without login Plain text file user.php Example example usage
  Accessible without login Plain text file user_loop.php Example example usage

  Files folder image Files  /  examples  /  images  
File Role Description
  Accessible without login Image file koala.jpeg Icon image file

  Files folder image Files  /  examples  /  templates  
File Role Description
  Accessible without login Plain text file layout.tpl Data template file
  Accessible without login Plain text file users_list.tpl Data template file
  Accessible without login Plain text file users_list_item.tpl Data template file
  Accessible without login Plain text file user_profile.tpl Data template file
  Accessible without login Plain text file user_profile_loop.tpl Data template file

 Version Control Unique User Downloads Download Rankings  
 0%
Total:177
This week:0
All time:7,991
This week:1,109Up