Simple template parser for PHP

During the development of sourceXchange I wrote a small template parser, named Temply, which is able to handle single (closed) tags as well as nested block tags. Also, custom attributes can be assigned to tags to control their behaviour.

The parser is pretty easy to use and can be freely extended using a simple interface. The whole thing consists of just three relatively small PHP classes. It is not a full blown template engine like – for example – Smarty. It has no caching mechanisms (yet) and there are no predefined tag libs included. But I think this might as well be an advantage in some cases.

Today, I'm releasing the package in the downloads-section under the LGPL. Coding examples are included within the downloadable archive, to help you get started.

Comments (0)

Leave a comment, if you want to!
Marked fields (*) are mandatory.

Will not be published
By ticking this checkbox you agree to the storage of your data by this website. In order to be able to display comments this website stores the specified name, e-mail address, the specified website, the comment text as well as the time stamp. If you wish, you can have your comments deleted later. For detailed information, see my privacy policy.