Categories


Loading feed
Loading feed
Loading feed

Template Lite: A Sweeter Smarty Alternative


I always love it when Padraic Brady’s blogs. I think it’s his writing style that makes it so enjoyable to read. (It could be that he always writes really long blogs so it’s easy for me to find pull-quotes for DevZone!) No matter what the reason, his is one of the blogs I monitor daily. (and I’m ever so glad he’s back on-line, I was going through withdrawals in July!)

His latest blog gives an excellent review of a template engine called Template Lite. Stepping carefully so as not to seem down on Smarty, Paddy contrasts Template Lite to the current gold standard in template engines, Smarty. More than just a feature comparison though, Paddy talks about when he feels Template Lite is an appropriate choice.

Enter Mark Dickenson. Mark is the developer of a Smarty alternative: Template Lite. Template Lite is not simply another template engine. It’s objective is to maintain Smarty compliance (i.e. it parses Smarty markup) using a redesigned library for minimal memory and CPU cycle consumption. Not happy with just that, Mark has also introduced some non-standard Smarty markup which, simply enough, provides more intuitive methods for traversing arrays, looping, etc. – for example, the SWITCH, FOR and WHILE tags. The results? A Smarty drop-in replacement which is limited to approx. 50% of Smarty’s usual memory usage and is significantly faster at compiling and displaying templates.

You’ll have to visit his blog for the whole article. Like most things Paddy posts, it’s worth the read.

=C=

Comments


Wednesday, December 6, 2006
TEMPLATES, THE GOOD AND THE BAD...
12:18PM PST · jesse [unregistered]
Wednesday, June 20, 2007
RE: TEMPLATES, THE GOOD AND THE BAD...
8:40AM PDT · Rob [unregistered]