PHP Classes

SmartTemplate: Enterprise Class Template Compiler

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
StarStarStar 58%Total: 2,858 All time: 1,317 This week: 61Up
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 (6)  
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

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:2,858
This week:0
All time:1,317
This week:61Up
 User Ratings  
 
 All time
Utility:72%StarStarStarStar
Consistency:75%StarStarStarStar
Documentation:67%StarStarStarStar
Examples:75%StarStarStarStar
Tests:-
Videos:-
Overall:58%StarStarStar
Rank:1581