Sanemplate is an opensource php library for basic PHP templating.