Template classUpdate: 25th April 2008A similar template engine, I'm currently working on, which unsurprisingly caches the output, producing lightening fast pages, is here. There's no docs as I'm currently working on it, but you should (may) be able to work it out from the example. Probably. If you're interested most by the caching part, then you need to be aware of whether your application will benefit from it. Most will, but if every page refresh is different, then it may be an overhead instead of a benefit. The vast majority of apps, or websites, will though. Just something to be aware of. A very easy to use yet powerful and quick template engine. Enables you to seperate your page layout/design from your code. It can handle simple variable replacement and table building using two dimensional arrays and/or MySQL result sets (Meaning that given a single row in the template, this class can build an entire table of data). Performance is excellent. Has support for multiple template files. Documentation is included in the zip file. Download now (but you may well want to consider the one I'm working on instead - it'll be faster) Link to meIf you use any of the code on this site (and if you don't I guess) or it makes your life easier, I'd appreciate a link - http://www.phpguru.org. Thanks. |
