Open Power Template is a template engine written in PHP 5. While developing it we chose two main goals for it: to be fast, and to be flexible. We managed to do that. OPT uses a very effective template parsing algorithm, which compiles the templates into the PHP code. Of course they are stored on a HDD, so that we don't have to recompile them every time someone enters our website. When it comes to the flexibility, you may change here everything: from the instruction set and the syntax structure to... whole template engine. Yes! You may remove the original heart of the library and write your own, based on the OPT Compiler.
The feature issue also looks good. OPT provides both low and high level template syntax structures. Using programming instructions, like if or foreach you manage to do almost everything, whereas sections and components make your live easier. The full list contains:
The library is available under GNU Lesser General Public License. You may use it and modify for free, even in commercial projects unless you remove copyright notes and do not earn money for just because of it.
Open Power Template is a part of bigger project: Open Power Board. Its goal is to create open-source and qood-quality discussion board. There are also another Open Power projects. Open Power Forms is the official add-on to OPT allowing to build really dynamic HTML forms connected with data validation and user info collecting. Open Power Driver is a layer for PHP Data Objects library with almost the same API, but extended with data caching feature. All the projects are developed mostly by Polish PHP community, but we do not forget about the rest.
Before we start, remember one thing... OPT is not a Smarty™ clone.