SmartPHP - Yet Another PHP Template Library
Tuesday, March 23rd, 2004I stumbled on quite a find the other night with the SmartPHP template library. This library supports the normal features for a template library such as:
- Simple Scalar Substition (strings, variables)
- Block Iterations (nested Arrays / BEGIN..END)
- Basic Control Structures (IF..ELSEIF..ELSE)
- Custom Extension (Output filters, uppercase, sprintf, etc.)
- Template Compilation (HTML templates are converted to executable PHP Code)
- Output Caching (Accelerates your applications by reusing page output)
While there’s nothing in this library that hasn’t already been done before, it’s very fast and includes a powerful plugin / extension system. Extensions are easy enough to create and add another dimension to this library.
I’ve used bTemplate in the past because it handles block control structures in a much more intuiative manner then most template libraries. SmartPHP shares a very similiar approach, which coupled with the other enhancements, makes this a very powerful template library.
