Categories


Loading feed
Loading feed
Loading feed

Template Lite, a Smarty compatible template engine, releases version 1.20


I’m not lazy. I just feel that it’s important to expend as little effort as necessary to accomplish any given goal. Less is more, smaller is better, and lite is good. With that in mind, let’s talk about Template Lite. Another template engine for PHP. (All together now, roll your eyes and get it over with.)

Template Lite released version 1.20 yesterday. (wait, that can’t be right…there’s no BETA…where is the beta?!?) It is billed as a drop in replacement for the venerable Smarty Template Engine. It’s selling point is faster execution and a smaller memory footprint at the expense of some of the options. Template Lite started life as a project named Smarty Lite but for reasons too boring to go into here, the original code base was abandoned.

Mark Dickenson picked up the project, renamed it and is now the maintainer of the current code base. He has this to say about his project.

Template Lite can compile and display any template file that works with the Smarty engine except for those that use the SECTION function. Template Lite uses the much more familiar FOR function. I will probably add support for the SECTION function in a later release to maintain compatibility. I would recommend everyone use the FOR function instead because it is many, MANY times faster in execution while offering the same functionality. The SECTION function in Smarty was something that never should have been created by the authors in my opinion. It is just plain slow and overly convoluted for what it does.

Ah, a man after my own heart. No sugar coating or side-stepping the issues. He wields his opinion like a sledgehammer. [Note to Sir Berners-Lee: the Semantic web needs a HUMBLE tag…not that I personally would ever use it.]

The comments over at Maugrim The Reaper’s Blog seem to indicate that there still may be some bugs to bludgeon to death with Marks opinion.

The Smarty Template Engine is a great piece of code but it may be overkill for some projects. If you need lighter, faster and simpler, and don’t want to expend the energy yourself to find a replacement, take a look at Template Lite

=C=

Comments


Wednesday, March 29, 2006
EDITOR'S NOTE
1:58AM PST · Jayson Minard (editor)
HTML OUTPUT
8:47PM PST · norm2782
Wednesday, April 12, 2006
LATEST VERSION
1:31PM PDT · AKAPanamaJack