View Single Post
Old 11-16-2004, 07:06 PM   #14 (permalink)
idx
Senior Grasshopper
 
idx's Avatar
 
Join Date: Jun 2003
Location: FL
Posts: 317
idx is on a distinguished road
You guys ever use Smarty? I've tried several and then went the roll your own route. For the minor speed increase you get with smaller engines (or your own) it never turned out being worth the time.

The feature set, ease of use and caching (big plus) is hard to beat. Even non-coders should be able to wrap their design head around smarty's blocks and section loops.

What I typically do is have a system where each page includes a central pre-processing file that does all sorts of things (session, db, config, auth stuff, function calls, page header/footer), then processes whatever the page does (fetch client data/list, etc..) and pass the data to smarty if necessary. If the page is small enough its typically not worth it to template.

..all depends on the data and who is maintaining..

-r
idx is offline   Reply With Quote