PHP Classes
Icontem

Class: Easy Template


  Search   All class groups All class groups   Latest entries Latest entries   Top 10 charts Top 10 charts   Newsletter Newsletter   Blog Blog   Forums Forums   Help FAQ Help FAQ  
  Login   Register  
Recommend this page to a friend! ReTweet ReTweet Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Jeff Williams  >  Easy Template  >  Download  >  Support forum Support forum  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Easy Template Support forum
Base name: easytemplate
Description: Template engine based on real HTML tag replacement
Related top rated classes: , , ,
Version: 2.5
Required PHP version: 5.0
License: Freely Distributable
All time users: 2042 users
All time rank: 1307
Week users: 9 users
Week rank: 867
 
  Author   Group folder image Groups   Detailed description  
  Rate classes User ratings   Applications   Related links   Files Files  

Author

Picture of Jeff Williams
Name: Jeff Williams is available for providing paid consulting. Contact Jeff Williams .
Published packages: 5 Browse this author's classes Browse this author's classes
Country: United States United States - PHP jobs in United States
Home page: ???
Age: 38
All time rank: 95
Week rank: 49

Groups

Group folder image PHP 5 Classes using PHP 5 specific features View top rated classes
Group folder image Templates Template processing engines and components View top rated classes

Detailed description

Incredibly easy and powerful templating class - Separate your code from your HTML. The code is extremely compact and fast. Uses regular expressions to do most of the work.

This powerful class implements a template engine based on tag replacement. It can load templates from files and replace tags with template parameter values.

The template tags are special HTML comments (or ACTUAL HTML TAGS). They can be replaced with arbitrary HTML, arbitrary text to be escaped as HTML, text read from files or remote Web pages, or another template.

New version 2.5: Now you can use actual HTML tags as template tags! Use ANY HTML editor to create your templates.

Replace an HTML tag or just the tag's data. Change actual existing tables, dropdowns, and list data on the fly with arrays - while still keeping all attributes and style information. Grab a table from a page on another site or create SELECT OPTION lists on the fly - all from one single line of code.

Supports database records, numbered arrays, and associative arrays - and can even populate table headers using array keys... and LOT'S MORE.

Methods were separated into an extended class for performance (because they use the regex engine). The separation of code also makes the class more maintainable, faster, memory efficient and easier to use for smaller projects. Use "Template" for simple templating and "TemplateHTML" for ultra high performance HTML support where actual form elements can be used as template tags.

(Still compatible with 1.x code - works GREAT with Ultimate MySQL class)

User ratings

Ratings
Utility
Consistency
Documentation
Examples
Tests
Videos
Overall
Rank
All time:
Good (91.7%)
Good (83.3%)
Not sure (50.0%)
Sufficient (66.7%)
-
-
Sufficient (65.8%)
335
Month:
Not yet rated by the users

Applications that use this class

No application links were specified for this class.
Add link image If you know an application of this package, send a message to the author to add a link here.

Related links

Link Description
Ultimate MySQL Works great with Easy Template class. Queries can be fed to automatically generate tables, dropdown lists, and more.

Files

File Role Description
Plain text file template.class.php Class Easy Template Class File
Plain text file templatehtml.class.php Class Optional Advanced HTML Templating Class
HTML file help.html Doc. Help File
HTML file example3.html Example Example 3 - New 2.5 Features!
Plain text file example3.php Example Example 3 - New 2.5 Features!
Plain text file example1.html Data Example 1 - Old style comment tags
Plain text file example1.js Data Example 1 - Old style comment tags
Plain text file example1.php Example Example 1 - Old style comment tags
Plain text file example2.html Data Example 2
Plain text file example2.php Example Example 2
Download all files: easytemplate.tar.gz easytemplate.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.

 
  Advertise on this site Advertise on this site   Site map Site map   Statistics Statistics   Site tips Site tips   Privacy policy Privacy policy   Contact Contact  

For more information send a message to :
info at phpclasses dot org.
Copyright (c) Icontem 1999-2009 PHP Classes - PHP Class Scripts
  PHP Book Reviews - Reviews of books and other products