PHP Classes
elePHPant
Icontem

SmartTemplate: Enterprise Class Template Compiler

Recommend this page to a friend!
  Info   View files View files (6)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2003-03-23 (13 years ago) RSS 2.0 feedStarStarStar 59%Total: 2,836 All time: 1,280 This week: 1,045Up
Version License Categories
smarttemplate 1.0GNU General Publi...Templates
Description Author

The SmartTemplate templating engine supports: compiled templates, ouput caching, scalar substitution, iterations over nested blocks (BEGIN..END), basic control structures (IF..ELSEIF..ELSE), custom extension (output filters like uppercase, sprintf, etc.) and because of its unique structure and a minimum of overhead is up to 8x faster than other templating engines.

Picture of Philipp v. Criegern
Name: Philipp v. Criegern <contact>
Classes: 1 package by
Country: Germany Germany

Details
SmartTemplate 1.0
Author: Philipp von Criegern (philipp@criegern.com)
Release Date: 22.08.2002
License: GPL

How To Install:
1. Download and unzip the smarttemplate package. The following files should be unpacked:

   class.smarttemplate.php
   class.smarttemplatedebugger.php
   class.smarttemplateparser.php
   readme.txt
   examples/Alternating_Colors.html
   examples/Alternating_Colors.php
   examples/DropDown_Boxes.html
   examples/DropDown_Boxes.php
   examples/Hello_World.html
   examples/Hello_World.php
   examples/Iterating_Blocks.html
   examples/Iterating_Blocks.php
   examples/Nested_Blocks.html
   examples/Nested_Blocks.php
   examples/Special_Characters.html
   examples/Special_Characters.php
   smarttemplate_compiled/
   smarttemplate_extensions/smarttemplate_extension_config.php
   smarttemplate_extensions/smarttemplate_extension_current_date.php
   smarttemplate_extensions/smarttemplate_extension_current_datetime.php
   smarttemplate_extensions/smarttemplate_extension_current_time.php
   smarttemplate_extensions/smarttemplate_extension_dateformat.php
   smarttemplate_extensions/smarttemplate_extension_dateformatgrid.php
   smarttemplate_extensions/smarttemplate_extension_db_date.php
   smarttemplate_extensions/smarttemplate_extension_db_datetime.php
   smarttemplate_extensions/smarttemplate_extension_db_time.php
   smarttemplate_extensions/smarttemplate_extension_encode.php
   smarttemplate_extensions/smarttemplate_extension_entity_decode.php
   smarttemplate_extensions/smarttemplate_extension_gettext.php
   smarttemplate_extensions/smarttemplate_extension_header.php
   smarttemplate_extensions/smarttemplate_extension_help.php
   smarttemplate_extensions/smarttemplate_extension_hidemail.php
   smarttemplate_extensions/smarttemplate_extension_htmlentities.php
   smarttemplate_extensions/smarttemplate_extension_load_config.php
   smarttemplate_extensions/smarttemplate_extension_load_file.php
   smarttemplate_extensions/smarttemplate_extension_lowercase.php
   smarttemplate_extensions/smarttemplate_extension_mailto.php
   smarttemplate_extensions/smarttemplate_extension_number.php
   smarttemplate_extensions/smarttemplate_extension_nvl.php
   smarttemplate_extensions/smarttemplate_extension_options.php
   smarttemplate_extensions/smarttemplate_extension_regex.php
   smarttemplate_extensions/smarttemplate_extension_replace.php
   smarttemplate_extensions/smarttemplate_extension_select_site.php
   smarttemplate_extensions/smarttemplate_extension_session.php
   smarttemplate_extensions/smarttemplate_extension_stringformat.php
   smarttemplate_extensions/smarttemplate_extension_substr.php
   smarttemplate_extensions/smarttemplate_extension_textbutton.php
   smarttemplate_extensions/smarttemplate_extension_trim.php
   smarttemplate_extensions/smarttemplate_extension_truncate.php
   smarttemplate_extensions/smarttemplate_extension_uppercase.php
   smarttemplate_extensions/smarttemplate_extension_urlencode.php
   smarttemplate_extensions/smarttemplate_extension_vardump.php

2. Copy the class.*.php files and the smarttemplate_extensions folder to your PHP include folder
   (Specified in your php.ini: include_path= XXX)

3. Edit the class.smarttemplate.php file and adjust the configuration according to your system configuration:
   $temp_dir  : The folder where the compiled templates can be stored. PHP must have write access to this folder!
   $cache_dir : The folder where output cache files can be stored (if used). PHP must have write access to this folder!

4. Copy the examples folder to somewhere below your document root, so you can access with your browser.

5. Have a look at the examples in the examples folder to see how SmartTemplate works.
  Files folder image Files  
File Role Description
Plain text file class.smarttemplate.php Class Main Class File
Plain text file class.smarttemplatedebugger.php Class Debugger Class
Plain text file class.smarttemplateparser.php Class Compiler Class
Accessible without login Plain text file example.html Data Example Template
Accessible without login Plain text file example.php Example Example Script
Accessible without login Plain text file readme.txt Doc. Installation Guide

 Version Control Unique User Downloads Download Rankings  
 0%
Total:2,836
This week:0
All time:1,280
This week:1,045Up
 User Ratings  
 
 All time
Utility:75%StarStarStarStar
Consistency:77%StarStarStarStar
Documentation:69%StarStarStarStar
Examples:77%StarStarStarStar
Tests:-
Videos:-
Overall:59%StarStarStar
Rank:1167