I'd still prefer smarty over writing my own, mainly because it's pre-written, well tested, easy to use and prolly more efficient than something I would write myself. If you have a huge project, imo, there's no sense re-inventing the wheel by writing your own template engine, when there is more...