Simple PHP template class.