Converts PHP templates into another