Login   Register  
PHP Classes
elePHPant
Icontem

Separated Template : Process HTML templates using CSS classes

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 (6)   DownloadInstall with Composer Download .zip   Reputation   Support forum (2)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2009-08-29 (5 years ago) RSS 2.0 feedStarStar 29%Total: 899 This week: 1All time: 3,666 This week: 1,141Up
Version License PHP version Categories  
stamplate 2.1Custom (specified in a ...5.0PHP 5, Templates
Description Author  

This class can be used to process HTML templates using CSS classes.

It reads HTML templates from files and replaces the contents of HTML tags that have given CSS class names.

The processed template is returned as a string.

Innovation Award  
PHP Programming Innovation award nominee
July 2009
Number 6


Prize: One downloadable copy of PhpED Professional
Most common template engine solutions require that templates have special marks that identify sections which will be replaced by variable values when the templates are processed.

This class provide an alternative approach for HTML templates. It consists in identifying the sections to be replaced using the tag attribute that specifies the CSS class for the tag element.

Manuel Lemos
Picture of Sebastian Potasiak
Name: Sebastian Potasiak <contact>
Classes: 8 packages by
Country: Poland Poland
Age: ???
All time rank: 62117 in Poland Poland
Week rank: 641 Down19 in Poland Poland Down
Innovation award
Innovation award
Nominee: 3x

  Files folder image Files  
File Role Description
Files folder imagetemplates (2 files)
Accessible without login Plain text file example.php Example Example of using class
Accessible without login Plain text file license.txt Lic. Creative Commons
Plain text file sTemplate.class.php Class Class file
Accessible without login Plain text file style.css Example Style file

  Files folder image Files  /  templates  
File Role Description
  Accessible without login Plain text file each.html Data Template file
  Accessible without login Plain text file main.html Data Template file

 Version Control Unique User Downloads Download Rankings  
 0%Total:899All time:3,666
 This week:1This week:1,141Up
User Ratings User Comments (1)  
 All time
Utility:50%StarStarStar
Consistency:41%StarStarStar
Documentation:-
Examples:-
Tests:-
Videos:-
Overall:29%StarStar
Rank:2396