Login   Register  
PHP Classes
elePHPant
Icontem

Pine template: Template engine that replaces tags in files

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (5)   DownloadInstall with Composer Download .zip   Reputation   Support forum (2)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2008-07-15 (6 years ago) RSS 2.0 feedNot enough user ratingsTotal: 383 All time: 5,962 This week: 1,469Up
Version License PHP version Categories  
pine_template 1.1GNU Lesser General Publ...5.0Templates
Description Author  
This class implements a template processing engine.

It reads templates from files with special marks that start by { and end in } .

The class takes as argument an associative array with all template variables.

It traverses the template file data to replace all occurrences of the template variables by the respective values.
Picture of András Zoltán-Gyárfás
Name: András Zoltán-Gyárfás <contact>
Classes: 3 packages by
Country: Romania Romania
Age: 34
All time rank: 183945 in Romania Romania
Week rank: 1811 Up47 in Romania Romania Down

  Files folder image Files  
File Role Description
Accessible without login Plain text file template.lib.php Class Main script
Plain text file content.tpl Data template file
Plain text file example.php Example Example and documentation
Plain text file exemple1.php Example More complex exemple
Plain text file index.tpl Data template file

 Version Control Unique User Downloads Download Rankings  
 0%Total:383All time:5,962
 This week:0This week:1,469Up
 User Comments (2)