phptpl is a portable PHP template engine. Don't need costs too much to study can easily grasp, simple is beautiful.