Unsually, the final HTML code of the website is composed of several smaller templates containing smaller pieces of it. There are many techniques of combining them. In PHP template engines, the most popular are two forms: manual execution of the templates from the script side and the include directive. Similar solution can be found in OPT 1.x, however in the new version, it should be forgotten - unless we use the quirks mode, the parser does not let us to call the parse() method more than once. In the beginning, I planned to replace it by extending inclusion with "sequences" - a groups of templates to include with their own variables and cache settings. However, one day I was asked on my blog by Coldpeer, whether OPT will support template inheritance. I googled for a while, I looked at it and thought it might be cool. That's how the implementation began.
Saturday, 02 February 2008
Thursday, 31 January 2008
The last project I've created using Open Power Forms, shown some weaknesses of the current form implementation. There were some forms allowing a mass addition of many records in the following way: a table, in the columns the following fields: Name, Surname, PESEL number, etc. The numer of rows was 30, so the user is able to add 30 people to the database with one form. The adaptation of the map() method to my problem was not too hard; in fact it seemed that opfArrayContainer solved everything. But then the form renderer connected with Open Power Template went off.
Wednesday, 30 January 2008
Welcome to the devblog of the new programming group Invenzzia. The reason that I formed them are my open-source projects which need a good organization and infrastructure. To begin with, the group will take care of my advanced template engine that exists for over three years so far - Open Power Template. It will become the first part of a bigger series "Open Power Libraries". Currently, we have already begun setting up everything and our website is run part by part. I'll do everything to make sure it won't last too long.
page 3 of 3 - next entries »