Login   Register  
PHP Classes
elePHPant
Icontem

SmashTemplate: Template that replaces placeholders by PHP code

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 (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2003-11-30 (10 years ago) RSS 2.0 feedNot enough user ratingsTotal: 770 All time: 4,026 This week: 1,508Up
Version License Categories  
smashtemplate 1.0GNU General Public Lice...Templates
Description Author  

SmashTemplate is a template engine class that allows for you to create a template, add placeholders, then replace the placeholders dynamically with PHP code.

The resulting preprocessed template is evaluated like a normal PHP script to generate the processed output.

This template engine also allows for the use of PHP code inside the templates. This way you can reuse your PHP knowledge to define template logic and so you do not have to learn new template logic tags.

Picture of James Glenlake
Name: James Glenlake <contact>
Classes: 5 packages by
Country: United States United States
Age: ???
All time rank: 36438 in United States United States
Week rank: 1712 Down200 in United States United States Down

  Files folder image Files  
File Role Description
Plain text file index.css Data Stylesheet for example
Accessible without login Plain text file index.php Example An example of how to use SmashTemplate
Plain text file template.php Class The main class file
Plain text file template.tpl Data Example template file. Should be placed in templates directory.

 Version Control Unique User Downloads Download Rankings  
 0%Total:770All time:4,026
 This week:0This week:1,508Up