The project started in November 2004, as a template engine for a discussion board project inspired by Smarty. While it later failed, the library became independent. In July 2006, the version 1.0.0 was released. It offered a template language with Smarty-like syntax and a small set of declarative instructions.
In January 2007, the developers release the version 1.1.0 which brings some notable improvements, such as pagination support and tree rendering.
In January 2008, the developers form an open-source programming team, Invenzzia to develop OPT and other PHP projects. At the same time, the development of Open Power Template 2.0 began.
The last version of the 1.1 branch was released in May 2008 and the group focused on the OPT 2.0 development. The new library went into the beta-stage in December and the first stable version was released in July 2009.
The OPT 2.0 template language is an XML application that allows the manipulation of the XHTML document structure. The other features are:
The built-in XML parser can be reconfigured to parse certain HTML documents or plain text content.
Since the templates are separated from the application logic, you need at least two files. The first one contains the presentation code as an XML template:
The second one generates the data and configures the library: