PHP Classes

Tamplate: Template engine that replaces variables with text

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 342 All time: 7,066 This week: 560Up
Version License PHP version Categories
tamplate 0.9BSD License5.0PHP 5, Templates
Description 

Author

This class implements a template engine that replaces variables with text.

It can read and parse a given template file to replace marks with text values from variable values. The variable values may also be passed as arrays.

The processed template may be returned as a string or displayed as the current script output.

Picture of Luke Szanto
Name: Luke Szanto <contact>
Classes: 2 packages by
Country: Australia Australia
Age: ???
All time rank: 151222 in Australia Australia
Week rank: 178 Up4 in Australia Australia Up

  Files folder image Files (3)  
File Role Description
Accessible without login Plain text file example.php Example An example of the usage of Tamplate
Accessible without login Plain text file page.tpl Data An example of a simple template
Plain text file Tamplate Class The class file

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:342
This week:0
All time:7,066
This week:560Up
User Comments (1)