Simple PHP template inheritance and view management class using pure PHP