We are pleased to announce the availability of an alpha version of our PHP templating framework on GitHub. Tierra Templates is a ground up rewrite of Tierra’s internal templating framework incorporating many new internal feature requests from using it on multiple client projects. We are announcing the alpha version to get feedback from the community with the plan to release the initial beta version at 0.9 sometime in mid to late September and the stable 1.0 version in December.
Tierra Templates was inspired by the template inheritance structure of Django templates and extends it to allow blocks to be both conditionally included and easily appended and prepended. Its most unique feature however is a new code construction called a “conditerator” that combines conditional logic and an iterator allowing you to dramatically reduce your template code. Other unique features include block decorators which are functions called at compile time allowing you to add your own code during code generation and a function call syntax enabling you to call functions in external files within their own namespace. Built-in decorators allow you to do things like easily cache fragments of your templates using memcached and set expire times for pages.
We will be blogging about each of the major features of the framework and how we built the framework in the days to come. Please subscribe to the RSS feed and stay tuned!