PHP Classes

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    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 189 All time: 8,559 This week: 277Up
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
Age: ???
All time rank: 345923 in Nigeria Nigeria
Week rank: 703 Up14 in Nigeria Nigeria Up

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:189
This week:0
All time:8,559
This week:277Up