OPT - php5 template engine (please review)

Coding Critique is the place to post source code for peer review by other members of DevNetwork. Any kind of code can be posted. Code posted does not have to be limited to PHP. All members are invited to contribute constructive criticism with the goal of improving the code. Posted code should include some background information about it and what areas you specifically would like help with.

Popular code excerpts may be moved to "Code Snippets" by the moderators.

Moderator: General Moderators

Post Reply
User avatar
Zyxist
Forum Contributor
Posts: 104
Joined: Sun Jan 14, 2007 10:44 am
Location: Cracow, Poland

OPT - php5 template engine (please review)

Post by Zyxist »

Hi everyone,

I'm writing a template engine for PHP5 called "Open Power Template". The history of this script begins more than 2 years ago. We needed a template engine for our discussion board project, but we didn't like many things in Smarty, so I decided to write our own code. The code was being extended with new features, sometimes rewritten etc. and lately the first stable releases have appeared. The library has already gained some popularity in my country.

Here are some more facts I know:
* OPT is written in PHP5 and makes use of OOP.
* All the main Smarty features, such as all the programming stuff, output caching, extending possibility, plugins etc. implemented.
* High-level template stuff: user-friendly sections, tree rendering, (pagination, i18n)support, form components (1) etc.

(1) - well, actually it is an API to create form components. The component pack is being developed as a separate project.

The library is definitely TOO big to present it directly on the forum (thousands of code lines), so I'll provide some links:
* http://svn.berlios.de/viewcvs/openpb/opt/trunk/lib/ - SVN repository viewer. You can view here the library sources without downloading them.
* http://sourceforge.net/project/showfile ... _id=139233 - downloads
* http://opt.openpb.net/docs/html/en/index.html - English manual
* http://opt.openpb.net/ - project website

So, what do you think about the library? Have you got any ideas for the new features or what should/could be improved? I have also a question about the reference manual. I tried to explain there everything as well as I can do in English, but there could be some parts with worse or very short description. If you are going to read the docs, please point me such chapters.
Post Reply