One month ago we had no time to prepare a good website for our group so Zyx made something temporary. Today I present a better and more complex solution. The website has been updated with texts and articles about our team. We've got still a lot to do with organization but our website and devblog are almost finished.
Tuesday, 26 February 2008
Friday, 22 February 2008
The result of the latest works on the OPT source code is complete opt.class.php file which contains (as some of the readers may know) the main parser class. I must admit that this file was more demanding that the compiler. In the second case we can afford with quite a lot. Just an idea for the algorithm and prediction if and how it will influence the rest of the code. In the case of the main class, we must pay attention to the performance. It must contain everything that is run permanently and it must be fast and small. But the number of features is getting bigger and bigger.
Friday, 15 February 2008
According to the my announcement from the last week, the development versions are going to appear much faster than before. This is the first of such events. The third dev of OPT 2.0.0 is ready to download. This time, I've paid much attention to the attribute processing. They can do a lot of interesting things with the tags they've been added to. The earl implementation has been ready so far - there were even examples showing the "opt:section" working. But to satisfy both me and probably other programmers, I had to extend it.
Saturday, 09 February 2008
The website now has the "Download" page. In it, you can find a new development version of Open Power Template. It also contains a simple script "docgen" which we use for automated generation of the DocBook manuals. The new development versions should appear now much more often than before. In case of many new features, they might appear even every 2-3 days. The reason why this was impossible in the past was the time. The process was not automated and it takes a while to prepare such archive (for example - it takes a couple of hours to publish new OPT 1.x version on the Internet).
Thursday, 07 February 2008
From time to time, I return to the library licensing issue. Undoubtedly, the right choice of a license is quite significant for the project success or failure. Simple, permissive licenses are very easy to follow and use, but in my opinion, they are quite dangerous for the project itself and can lead to some abuses. On the other hand, we have a GNU LGPL license, which has been used by Open Power Template so far. It provides the correct protection of the code, however the linking with non-GPL software is quite complex and produces many questions. Let's take a look: we write the libraries for all the website programmers and authors of complete scripts, whether they are open-source or not.
Saturday, 02 February 2008
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.