PHP Classes

Separated Template : Process HTML templates using CSS classes

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
StarStar 29%Total: 913 All time: 3,891 This week: 560Up
Version License PHP version Categories
stamplate 2.1Custom (specified...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
  Performance   Level  
Innovation award
Innovation award
Nominee: 3x

 

  Files folder image Files (6)  
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

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:913
This week:0
All time:3,891
This week:560Up
User Ratings User Comments (1)
 All time
Utility:50%StarStarStar
Consistency:43%StarStarStar
Documentation:-
Examples:-
Tests:-
Videos:-
Overall:29%StarStar
Rank:4369